reload-termux, add header output for each git command.

This commit is contained in:
me
2026-08-25 08:45:43 -07:00
parent 4f28529537
commit 500db502cc
+3
View File
@@ -127,10 +127,13 @@ export PROJECT_TERMUX="$HOME/.git-env-termux"
function test-termux { function test-termux {
if [[ -d "$PROJECT_TERMUX" ]]; then if [[ -d "$PROJECT_TERMUX" ]]; then
log "`date` - Updating '$PROJECT_TERMUX'.\n" log "`date` - Updating '$PROJECT_TERMUX'.\n"
echo " Switching to '$BRANCH'."
git -C "$PROJECT_TERMUX" switch "$BRANCH" git -C "$PROJECT_TERMUX" switch "$BRANCH"
echo " Pulling with submodules."
git -C "$PROJECT_TERMUX" pull --recurse-submodules || \ git -C "$PROJECT_TERMUX" pull --recurse-submodules || \
( echo "Failed to pull project, exiting." && return 1 ) ( echo "Failed to pull project, exiting." && return 1 )
# Something above is doing a 'D setup.sh', so ensure it gets recreated. # Something above is doing a 'D setup.sh', so ensure it gets recreated.
echo " Ensuring setup.sh exists."
git -C "$PROJECT_TERMUX" restore setup.sh git -C "$PROJECT_TERMUX" restore setup.sh
else else
log "`date` - Downloading '$PROJECT_TERMUX'.\n" log "`date` - Downloading '$PROJECT_TERMUX'.\n"