termux-reload, since the setup.sh file keeps getting deleted by git for unknown reasons, ensure it gets restored automatically.
This commit is contained in:
@@ -130,6 +130,8 @@ function test-termux {
|
|||||||
git -C "$PROJECT_TERMUX" switch "$BRANCH"
|
git -C "$PROJECT_TERMUX" switch "$BRANCH"
|
||||||
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.
|
||||||
|
git -C "$PROJECT_TERMUX" restore setup.sh
|
||||||
else
|
else
|
||||||
log "`date` - Downloading '$PROJECT_TERMUX'.\n"
|
log "`date` - Downloading '$PROJECT_TERMUX'.\n"
|
||||||
git clone https://git.hyperling.com/me/env-termux \
|
git clone https://git.hyperling.com/me/env-termux \
|
||||||
|
|||||||
Reference in New Issue
Block a user