diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-10-28 10:40:07 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-10-28 10:42:59 +0300 |
commit | 6b1578d8628a87420144e25b03909ae891353541 (patch) | |
tree | 9d37d7d08d07f355912cc368776cb76f05fa8c14 | |
parent | 36af04b8b1390f89bf5aac425e5abb134b1b7c01 (diff) |
build: fix cleanup optional
-rw-r--r-- | buildlib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildlib.sh b/buildlib.sh index 877e6b1c..503c7572 100644 --- a/buildlib.sh +++ b/buildlib.sh @@ -103,7 +103,7 @@ function launch_installation_qemu() { local IP=$1 [[ "$NO_CFG_STEP" != "1" ]] && local CFG_STEP=configure - [[ "$NO_CLEANUP" != "1" ]] && local CLEANUP_STEP="[[ \$( type -t cleanup ) == function ]] && cleanup" + [[ "$NO_CLEANUP" != "1" ]] && local CLEANUP_STEP="if [[ \$( type -t cleanup ) == function ]];then cleanup; fi" [[ "$NO_HALT_STEP" != "1" ]] && local HALT_STEP="nohup halt &>/dev/null &" local INSTALLATION_STEPS=" install |