Skip to content

Commit

Permalink
Quote "$TARGET" in messages from bootstrap script
Browse files Browse the repository at this point in the history
Without this targets like `.` and `..` produce confusing output.
  • Loading branch information
autarch committed Jul 27, 2024
1 parent 2c31284 commit af9a0b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap/bootstrap-ubi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi
TARGET="${TARGET:=$DEFAULT_TARGET}"

if [ ! -d "$TARGET" ]; then
>&2 echo "bootstrap-ubi.sh: The install target directory, $TARGET, does not exist"
>&2 echo "bootstrap-ubi.sh: The install target directory, \`$TARGET\`, does not exist"
exit 3
fi

Expand Down Expand Up @@ -154,12 +154,12 @@ fi
rm -rf -- "$TEMPDIR"

echo ""
echo "bootstrap-ubi.sh: ubi has been installed to $TARGET."
echo "bootstrap-ubi.sh: ubi has been installed to \`$TARGET\`."

set +e
TARGET_IS_IN_PATH=$(echo ":$PATH:" | grep --extended-regexp ":$TARGET:" 2>/dev/null)
if [ -z "$TARGET_IS_IN_PATH" ]; then
echo "bootstrap-ubi.sh: It looks like $TARGET is not in your PATH. You may want to add it to use ubi."
echo "bootstrap-ubi.sh: It looks like \`$TARGET\` is not in your PATH. You may want to add it to use ubi."
fi

echo ""

0 comments on commit af9a0b2

Please sign in to comment.