Fix error; reorder code
This commit is contained in:
parent
616009006a
commit
2e62f7a1f0
1 changed files with 5 additions and 5 deletions
10
build.sh
10
build.sh
|
@ -1,10 +1,5 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
source "$FUNCTIONS_DIR/logging.sh"
|
||||
source "$FUNCTIONS_DIR/dependencies_check.sh"
|
||||
|
||||
source "$SCRIPT_DIR/common.sh"
|
||||
|
||||
export IMG_NAME='BarnacleOS'
|
||||
export HOSTNAME='barnacleos'
|
||||
export USERNAME='user'
|
||||
|
@ -32,6 +27,11 @@ export QUILT_NO_DIFF_INDEX=1
|
|||
export QUILT_NO_DIFF_TIMESTAMPS=1
|
||||
export QUILT_REFRESH_ARGS='-p ab'
|
||||
|
||||
source "$FUNCTIONS_DIR/logging.sh"
|
||||
source "$FUNCTIONS_DIR/dependencies_check.sh"
|
||||
|
||||
source "$SCRIPT_DIR/common.sh"
|
||||
|
||||
main() {
|
||||
if [ "$(id -u)" != '0' ]; then
|
||||
echo 'Please run as root' 1>&2
|
||||
|
|
Reference in a new issue