Skip to content

Commit

Permalink
explicitly use tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vilmibm committed Aug 25, 2021
1 parent 2f3217e commit 9e91d1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gh-screensaver
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

tag="v1.0.0"

extensionPath="$(dirname "$0")"
arch="$(uname -m)"

Expand Down Expand Up @@ -42,7 +44,7 @@ if [ "${exe}" == "" ]; then
else
if [[ ! -x "${extensionPath}/${exe}" ]]; then
rm -f "${extensionPath}/${exe}"
gh release download -p "${exe}" --dir="${extensionPath}"
gh release download "${tag}" -p "${exe}" --dir="${extensionPath}"
chmod +x "${extensionPath}/${exe}"
fi
fi
Expand Down

0 comments on commit 9e91d1e

Please sign in to comment.