diff --git a/archi b/archi index 1ab0e05..b2b7866 100755 --- a/archi +++ b/archi @@ -515,9 +515,9 @@ UPDATER_SCRIPT_ADD() { for UPDATER_SCRIPT in "$FOLDER/updater-script-"*; do FILE="$(basename "$UPDATER_SCRIPT")" { - echo "" # This is to ensure that we have a new line BEFORE appending" + echo # This is to ensure that we have a new line BEFORE appending" cat "$UPDATER_SCRIPT" - echo "" # This is to ensure that we have a new line AFTER appending" + echo # This is to ensure that we have a new line AFTER appending" } >> "$ACTIVE_PROJECT/$META_INF/$FILE" sed -i '/^$/d' "$ACTIVE_PROJECT/$META_INF/$FILE" # This removes safety lines added above done @@ -549,10 +549,10 @@ BUILD_UPDATER_SCRIPT() { for UPDATER_SCRIPT in "$ACTIVE_PROJECT/$META_INF/updater-script-"*; do HEADER="# $(basename "$UPDATER_SCRIPT")" { - echo "" # This is to ensure that we have a new line BEFORE appending" + echo # This is to ensure that we have a new line BEFORE appending" echo "$HEADER" cat "$UPDATER_SCRIPT" - echo "" # This is to ensure that we have a new line AFTER appending" + echo # This is to ensure that we have a new line AFTER appending" } >> "$ACTIVE_PROJECT/$META_INF/updater-script" done sed -i '/^$/d' "$ACTIVE_PROJECT/$META_INF/updater-script" # This removes safety lines added above @@ -628,7 +628,7 @@ FIX_SYMLINKS() { mv -f "$ACTIVE_PROJECT/updater-script-TEMP" "$ACTIVE_PROJECT/$META_INF/$UPDATER_SCRIPT_SYMLINKS" fi PRESS_ENTER - echo "" + echo esac echo "We can also add local symlinks from your project, these are available only if your project is based on stock image and contains symlinks inside" @@ -640,7 +640,7 @@ FIX_SYMLINKS() { local TARGET="" local REALPATH="" rm -f "$ACTIVE_PROJECT/updater-script-TEMP-LIST" "$ACTIVE_PROJECT/updater-script-TEMP-FOUNDSYMLINKS" - echo "" >> "$ACTIVE_PROJECT/$META_INF/$UPDATER_SCRIPT_SYMLINKS" + echo >> "$ACTIVE_PROJECT/$META_INF/$UPDATER_SCRIPT_SYMLINKS" local MAGIC="0" find "$ACTIVE_PROJECT/" -type l | sort | while read SYMLINK; do TARGET="$(readlink "$SYMLINK")" @@ -676,7 +676,7 @@ FIX_SYMLINKS() { esac fi PRESS_ENTER - echo "" + echo esac echo "Please wait..." @@ -1308,7 +1308,7 @@ if [[ "$(which "${TOOLS[@]}" >/dev/null; echo $?)" -ne 0 ]]; then echo "Please install missing tool(s) and launch kitchen again" exit 1 fi -echo "" +echo # Check LONG_BIT for determining host architecture HOSTARCH="$(getconf LONG_BIT)" @@ -1383,4 +1383,4 @@ while :; do esac done -exit 0 \ No newline at end of file +exit 0