1
0
Fork 0

Fix error; reorder code

This commit is contained in:
Braiden Vasco 2017-07-03 01:04:47 +00:00
parent 616009006a
commit 2e62f7a1f0

View file

@ -1,10 +1,5 @@
#!/bin/bash -e #!/bin/bash -e
source "$FUNCTIONS_DIR/logging.sh"
source "$FUNCTIONS_DIR/dependencies_check.sh"
source "$SCRIPT_DIR/common.sh"
export IMG_NAME='BarnacleOS' export IMG_NAME='BarnacleOS'
export HOSTNAME='barnacleos' export HOSTNAME='barnacleos'
export USERNAME='user' export USERNAME='user'
@ -32,6 +27,11 @@ export QUILT_NO_DIFF_INDEX=1
export QUILT_NO_DIFF_TIMESTAMPS=1 export QUILT_NO_DIFF_TIMESTAMPS=1
export QUILT_REFRESH_ARGS='-p ab' export QUILT_REFRESH_ARGS='-p ab'
source "$FUNCTIONS_DIR/logging.sh"
source "$FUNCTIONS_DIR/dependencies_check.sh"
source "$SCRIPT_DIR/common.sh"
main() { main() {
if [ "$(id -u)" != '0' ]; then if [ "$(id -u)" != '0' ]; then
echo 'Please run as root' 1>&2 echo 'Please run as root' 1>&2