From 48cb20cffc233a791e26f308c92677bd468e7823 Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Mon, 3 Jul 2017 00:56:30 +0000 Subject: [PATCH] Reorder code --- build.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 4f66202..9e5d489 100755 --- a/build.sh +++ b/build.sh @@ -3,12 +3,7 @@ source "$FUNCTIONS_DIR/logging.sh" source "$FUNCTIONS_DIR/dependencies_check.sh" -if [ "$(id -u)" != '0' ]; then - echo 'Please run as root' 1>&2 - exit 1 -fi - -dependencies_check "$BASE_DIR/depends" +source "$SCRIPT_DIR/common.sh" export IMG_NAME='BarnacleOS' export HOSTNAME='barnacleos' @@ -37,7 +32,12 @@ export QUILT_NO_DIFF_INDEX=1 export QUILT_NO_DIFF_TIMESTAMPS=1 export QUILT_REFRESH_ARGS='-p ab' -source "$SCRIPT_DIR/common.sh" +if [ "$(id -u)" != '0' ]; then + echo 'Please run as root' 1>&2 + exit 1 +fi + +dependencies_check "$BASE_DIR/depends" main() { tput setaf 2 # Green color