Simplify mountimages.bash directories
This commit is contained in:
parent
0cbcc317df
commit
7922932aaa
1 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ function download_factory() {
|
||||||
|
|
||||||
(
|
(
|
||||||
msg "Downloading $DEVICE $BUILD images"
|
msg "Downloading $DEVICE $BUILD images"
|
||||||
dl_dir="$DL_ROOT/$BUILD"
|
dl_dir="$DL_ROOT"
|
||||||
mkdir -p "$dl_dir"
|
mkdir -p "$dl_dir"
|
||||||
if [[ "$(ls "$dl_dir" | grep -e "$DEVICE-$BUILD" | wc -l)" -ge 1 ]]; then
|
if [[ "$(ls "$dl_dir" | grep -e "$DEVICE-$BUILD" | wc -l)" -ge 1 ]]; then
|
||||||
echo "Skipping download, already present"
|
echo "Skipping download, already present"
|
||||||
|
@ -63,9 +63,9 @@ function download_factory() {
|
||||||
) &
|
) &
|
||||||
wait
|
wait
|
||||||
|
|
||||||
dl_dir="$DL_ROOT/$BUILD"
|
dl_dir="$DL_ROOT"
|
||||||
msg "Extracting images for $DEVICE $BUILD"
|
msg "Extracting images for $DEVICE $BUILD"
|
||||||
dev_mount="$MOUNT_ROOT/$DEVICE/$BUILD"
|
dev_mount="$MOUNT_ROOT"
|
||||||
|
|
||||||
# Extract zip (and delete if necessary)
|
# Extract zip (and delete if necessary)
|
||||||
if [[ ! -d "$dl_dir/$DEVICE-$BUILD" ]]; then
|
if [[ ! -d "$dl_dir/$DEVICE-$BUILD" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue