Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Jul 13, 2014
1 parent b34c7e0 commit 0a34a01
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions archi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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")"
Expand Down Expand Up @@ -676,7 +676,7 @@ FIX_SYMLINKS() {
esac
fi
PRESS_ENTER
echo ""
echo
esac

echo "Please wait..."
Expand Down Expand Up @@ -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)"
Expand Down Expand Up @@ -1383,4 +1383,4 @@ while :; do
esac
done

exit 0
exit 0

0 comments on commit 0a34a01

Please sign in to comment.