new status-all.sh script, summary of many git repos

This commit is contained in:
2023-11-07 16:35:50 +00:00
parent bb1a984a55
commit e5543afc9b
6 changed files with 125 additions and 16 deletions
+4 -4
View File
@@ -26,10 +26,10 @@ fi
# function to process each location
function process_git_pull () {
startedIn=`pwd`
location=$(dirname "$@")
echo -n "----- git pull $location "
printf "%*.*s" 0 $((40 - ${#location} )) "----------------------------------------"
echo "-----"
location=$(realpath $(dirname "$@"))
line="--- --- --- --- --- --- --- --- --- ---"
# use "--" to tell printf there are no more commands, only strings to print
printf -- "--- git pull %s %s ---\n" "$location" "${line:${#location}}"
cd "$location"
git pull --ff-only
cd "$startedIn"