mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Updated check to use != in daily.sh (#4916)
This commit is contained in:
committed by
Daniel Preussker
parent
a251e81be5
commit
126f82843e
2
daily.sh
2
daily.sh
@@ -49,7 +49,7 @@ if [ -z "$arg" ]; then
|
|||||||
old_ver=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
|
old_ver=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
|
||||||
status_run 'Updating to latest release' 'git fetch --tags && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))'
|
status_run 'Updating to latest release' 'git fetch --tags && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))'
|
||||||
new_ver=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
|
new_ver=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
|
||||||
if [ "$old_ver" -ne "$new_ver" ]; then
|
if [ "$old_ver" != "$new_ver" ]; then
|
||||||
status_run "Updated from $old_ver to $new_ver" ''
|
status_run "Updated from $old_ver to $new_ver" ''
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user