Skip to content

Commit a0cf10c

Browse files
committed
🐛 fix: correct conditional syntax in install.sh
Refactor the script to use single brackets for the conditional check. Additionally, modify the output message to display a shortened version of the local commit hash when indicating if the Vibe Auracle is up to date.
1 parent c607591 commit a0cf10c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if [ -z "$LATEST_TAG" ]; then
6565

6666
# If we found tags but it wasn't the 'latest' tag specifically,
6767
# try to see if 'latest' exists in the list for stability
68-
if [[ "$LATEST_TAG" != "latest" ]]; then
68+
if [ "$LATEST_TAG" != "latest" ]; then
6969
STABLE_TAG=$(echo "$TAG_DATA" | grep -oE '"tag_name": *"latest"' | head -n 1 | cut -d'"' -f4)
7070
if [ -n "$STABLE_TAG" ]; then
7171
LATEST_TAG="$STABLE_TAG"
@@ -111,7 +111,8 @@ if [ -n "$EXISTING_VIBE" ]; then
111111
# If the local version matches the latest tag, OR the local commit matches the latest SHA, we can skip
112112
if { [ -n "$LOCAL_VERSION" ] && [ "$LOCAL_VERSION" = "$LATEST_TAG" ]; } || \
113113
{ [ -n "$LOCAL_COMMIT" ] && [ -n "$LATEST_SHA" ] && [ "$LOCAL_COMMIT" = "$LATEST_SHA" ]; }; then
114-
echo "Vibe Auracle is already up to date ($LATEST_TAG / ${LOCAL_COMMIT:0:7})."
114+
SHORT_COMMIT=$(echo "$LOCAL_COMMIT" | cut -c1-7)
115+
echo "Vibe Auracle is already up to date ($LATEST_TAG / $SHORT_COMMIT)."
115116
exit 0
116117
fi
117118
fi

0 commit comments

Comments
 (0)