From 7922932aaa26c07f84982d428f088bf29b8e32ba Mon Sep 17 00:00:00 2001 From: flawedworld Date: Fri, 28 Jan 2022 02:18:23 +0000 Subject: [PATCH] Simplify mountimages.bash directories --- mountimages.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mountimages.bash b/mountimages.bash index 605b97b..08aa57e 100755 --- a/mountimages.bash +++ b/mountimages.bash @@ -53,7 +53,7 @@ function download_factory() { ( msg "Downloading $DEVICE $BUILD images" - dl_dir="$DL_ROOT/$BUILD" + dl_dir="$DL_ROOT" mkdir -p "$dl_dir" if [[ "$(ls "$dl_dir" | grep -e "$DEVICE-$BUILD" | wc -l)" -ge 1 ]]; then echo "Skipping download, already present" @@ -63,9 +63,9 @@ function download_factory() { ) & wait -dl_dir="$DL_ROOT/$BUILD" +dl_dir="$DL_ROOT" msg "Extracting images for $DEVICE $BUILD" -dev_mount="$MOUNT_ROOT/$DEVICE/$BUILD" +dev_mount="$MOUNT_ROOT" # Extract zip (and delete if necessary) if [[ ! -d "$dl_dir/$DEVICE-$BUILD" ]]; then