Skip to content

Commit 3483ea7

Browse files
authored
fixes #2301: check for a file named pingvin_version, not a variable with the same name (#2302)
1 parent 9ec1b65 commit 3483ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ct/pingvin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function update_script() {
3434
fi
3535

3636
RELEASE=$(curl -s https://api.github.com/repos/stonith404/pingvin-share/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
37-
if [[ ! -f /opt/$pingvin_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/pingvin_version.txt)" ]]; then
37+
if [[ ! -f /opt/pingvin_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/pingvin_version.txt)" ]]; then
3838

3939
msg_info "Stopping Pingvin Share"
4040
systemctl stop pm2-root.service

0 commit comments

Comments
 (0)