added docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2026-11-07 17:26:36 +03:00
parent 6c198e13a2
commit 3f8484b12a

View File

@ -1,5 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SKIP_FILE=${SKIP_FILE:-.pullall-skip}
while true ; do while true ; do
case $1 in case $1 in
-h|--help) -h|--help)
@ -10,6 +14,13 @@ while true ; do
echo "Options:" echo "Options:"
echo " -h --help - print this message and exit" echo " -h --help - print this message and exit"
echo " -r --recursive - pull directories recursively" echo " -r --recursive - pull directories recursively"
if ! [ -z $SKIP_FILE ] ; then
echo
echo "If $SKIP_FILE is present in the repository root directry"
echo "the repository will not get pulled."
#echo "To disable this behavior set \$SKIP_FILE to empty, e.g:"
#echo " SKIP_FILE= git pullall -r"
fi
echo echo
exit exit
;; ;;
@ -56,7 +67,8 @@ wd=$(pwd)
for dir in "${DIRS[@]}" ; do for dir in "${DIRS[@]}" ; do
dir="${dir%.git}" dir="${dir%.git}"
echo "$dir" echo "$dir"
if [ -e "$dir/.pullall-skip" ] ; then if ! [ -z $SKIP_FILE ] \
&& [ -e "$dir/$SKIP_FILE" ] ; then
echo "skipping..." echo "skipping..."
echo echo
continue continue