From 9776a1abe9d92da718f83ec96a6bfad47bb54609 Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Sun, 2 Jul 2017 17:42:33 +0000 Subject: [PATCH] Reorder code --- build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index e2be155..d6e6978 100755 --- a/build.sh +++ b/build.sh @@ -63,13 +63,12 @@ main() { mkdir -p "$WORK_DIR" STAGE_DIR="$BASE_DIR/stage0" - - pushd "$STAGE_DIR" > /dev/null - STAGE=$(basename "$STAGE_DIR") STAGE_WORK_DIR="$WORK_DIR/$STAGE" ROOTFS_DIR="$STAGE_WORK_DIR/rootfs" + pushd "$STAGE_DIR" > /dev/null + unmount "$STAGE_WORK_DIR" for SUB_STAGE_DIR in $STAGE_DIR/*; do