Skip to content

Commit

Permalink
fix empty version
Browse files Browse the repository at this point in the history
  • Loading branch information
digrouz committed Apr 21, 2023
1 parent b8d6e1e commit 442624c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ FULL_LAST_VERSION=$(curl -SsL ${DDCLIENT_URL} | \
)
LAST_VERSION="${FULL_LAST_VERSION:1}"

sed -i -e "s|DDCLIENT_VERSION='.*'|DDCLIENT_VERSION='${LAST_VERSION}'|" Dockerfile*
if [ "${LAST_VERSION}" ]; then
. sed -i -e "s|DDCLIENT_VERSION='.*'|DDCLIENT_VERSION='${LAST_VERSION}'|" Dockerfile*
fi

if output=$(git status --porcelain) && [ -z "$output" ]; then
# Working directory clean
Expand Down

0 comments on commit 442624c

Please sign in to comment.