reload-termux, add header output for each git command.
This commit is contained in:
@@ -127,10 +127,13 @@ export PROJECT_TERMUX="$HOME/.git-env-termux"
|
||||
function test-termux {
|
||||
if [[ -d "$PROJECT_TERMUX" ]]; then
|
||||
log "`date` - Updating '$PROJECT_TERMUX'.\n"
|
||||
echo " Switching to '$BRANCH'."
|
||||
git -C "$PROJECT_TERMUX" switch "$BRANCH"
|
||||
echo " Pulling with submodules."
|
||||
git -C "$PROJECT_TERMUX" pull --recurse-submodules || \
|
||||
( echo "Failed to pull project, exiting." && return 1 )
|
||||
# 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
|
||||
else
|
||||
log "`date` - Downloading '$PROJECT_TERMUX'.\n"
|
||||
|
||||
Reference in New Issue
Block a user