From 360ee78992d21c15e2326b904c89c43e516c1e9a Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Thu, 13 May 2021 10:54:36 +0100 Subject: [PATCH] Fix formatting --- build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 7920261..461fec0 100755 --- a/build.sh +++ b/build.sh @@ -103,9 +103,11 @@ run_and_log() { } debug() { - if [ -n "$DEBUG" ]; then - echo "DEBUG: $*" >&2 - fi + if [ -n "$DEBUG" ]; then + echo "DEBUG: $*" >&2 + fi +} + clean() { debug "Cleaning" @@ -124,6 +126,7 @@ BUILD_LOG=$(pwd)/build.log debug "BUILD_LOG: $BUILD_LOG" # Create empty file : > $BUILD_LOG + # Parsing command line options (see .getopt.sh) temp=$(getopt -o "$BUILD_OPTS_SHORT" -l "$BUILD_OPTS_LONG,get-image-path" -- "$@") eval set -- "$temp" @@ -270,7 +273,6 @@ debug "IMAGE_NAME: $IMAGE_NAME" # Don't quit on any errors now set +e - case "$IMAGE_TYPE" in live) if [ "$NO_CLEAN" = "" ]; then