new status-all.sh script, summary of many git repos
This commit is contained in:
+4
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user