diff --git a/backup-android.sh b/backup-android.sh index f76afbe..c224442 100755 --- a/backup-android.sh +++ b/backup-android.sh @@ -1,6 +1,7 @@ #!/data/data/com.termux/files/usr/bin/bash # Initialize ABSPATH="$(readlink -f "$BASH_SOURCE")" +set -x cd "${ABSPATH%/*}" || { echo "Cannot change directory" >&2; exit 1; } test -f ./env && source ./env || { echo "Unable to source user variables in $PWD"; exit 1; }