From c6d76d94c702a06fd270299b233e6c190b65afa0 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 26 Nov 2018 19:31:35 -0500 Subject: [PATCH] Add set -x --- backup-android.sh | 1 + 1 file changed, 1 insertion(+) 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; }