From 7162d6bcd244e9440e473a80915ff7fd3729e2cd Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 11 Oct 2022 20:33:46 -0500 Subject: [PATCH] Fix working directory detection --- build_revanced.sh | 2 +- download_apkmirror.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build_revanced.sh b/build_revanced.sh index 95dbd87..1320164 100755 --- a/build_revanced.sh +++ b/build_revanced.sh @@ -103,7 +103,7 @@ if [[ $flag == false && "$2" != "force" ]]; then fi # Download required apk files -$ODIR/download_apkmirror.sh "$WDIR" +/bin/bash "$ODIR/download_apkmirror.sh" "$WDIR" # Fetch microG chmod +x apkeep diff --git a/download_apkmirror.sh b/download_apkmirror.sh index 2aad548..14f59ab 100755 --- a/download_apkmirror.sh +++ b/download_apkmirror.sh @@ -81,7 +81,7 @@ dl_ytm() { # Get into the build directory -if [ -z "$1" ]; then +if [ -d "$1" ]; then cd "$1" else echo "Working directory not provided"