Skip to content

Commit 131bf58

Browse files
authored
Fix version print & latest check (#98)
1 parent 9f997d9 commit 131bf58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dockerc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ if [ "$DOCKERC_PRINT_VERSION" = 'true' ]; then
509509
LATEST_VERSION=$(get_latest_version)
510510
if [ -z "$LATEST_VERSION" ]; then
511511
echo 'Notice: Failed to get DockerC latest version.' >&2
512-
elif [ "$VERSION" != "$LATEST_VERSION" ]; then
512+
elif [ "$VERSION" != "${LATEST_VERSION#v}" ]; then
513513
echo "Notice: DockerC is not up to date, latest version is $LATEST_VERSION!" >&2
514514
fi
515515
fi
@@ -541,7 +541,6 @@ if [ "$UPDATE" = 'true' ]; then
541541

542542
if [ "$DRY_RUN" = 'false' ]; then
543543
# Run install script command
544-
echo "Updating DockerC to ${INSTALL_TAG}..."
545544
exec sh -c "curl -fsSL \"https://raw.githubusercontent.com/matiboux/dockerc/HEAD/install.sh\" | /bin/sh -s -- --install-dir \"${INSTALL_DIR}\"${INSTALL_TAG_ARG}"
546545
fi
547546

0 commit comments

Comments
 (0)