Improve build script
This commit is contained in:
parent
48cb20cffc
commit
dd8f061305
1 changed files with 10 additions and 10 deletions
20
build.sh
20
build.sh
|
@ -32,14 +32,17 @@ export QUILT_NO_DIFF_INDEX=1
|
|||
export QUILT_NO_DIFF_TIMESTAMPS=1
|
||||
export QUILT_REFRESH_ARGS='-p ab'
|
||||
|
||||
if [ "$(id -u)" != '0' ]; then
|
||||
echo 'Please run as root' 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dependencies_check "$BASE_DIR/depends"
|
||||
|
||||
main() {
|
||||
if [ "$(id -u)" != '0' ]; then
|
||||
echo 'Please run as root' 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dependencies_check "$BASE_DIR/depends"
|
||||
|
||||
mkdir -p "$WORK_DIR"
|
||||
mkdir -p "$DEPLOY_DIR"
|
||||
|
||||
tput setaf 2 # Green color
|
||||
echo "$IMG_DATE $(date +"%T")"
|
||||
echo
|
||||
|
@ -55,9 +58,6 @@ main() {
|
|||
echo
|
||||
tput sgr0 # No color
|
||||
|
||||
mkdir -p "$WORK_DIR"
|
||||
mkdir -p "$DEPLOY_DIR"
|
||||
|
||||
run_sub_stage "$STAGE_DIR/00-substage"
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue