Skip to content

Commit

Permalink
Update snapraid-aio-script.sh
Browse files Browse the repository at this point in the history
URL to be checked is in master branch
No more dev tags
  • Loading branch information
Oliver Cervera authored Mar 21, 2024
1 parent c5875a2 commit 77a3e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snapraid-aio-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
######################
# SCRIPT VARIABLES #
######################
SNAPSCRIPTVERSION="3.3" #DEV12
SNAPSCRIPTVERSION="3.3"

# Read SnapRAID version
SNAPRAIDVERSION="$(snapraid -V | sed -e 's/snapraid v\(.*\)by.*/\1/')"
Expand Down Expand Up @@ -122,7 +122,7 @@ function main(){

# check for script updates
if [ "$CHECK_UPDATES" -eq 1 ]; then
remote_version=$(curl -fsS -m 5 --retry 3 https://raw.githubusercontent.com/auanasgheps/snapraid-aio-script/dev/version)
remote_version=$(curl -fsS -m 5 --retry 3 https://raw.githubusercontent.com/auanasgheps/snapraid-aio-script/master/version)
if [[ "$remote_version" != "$SNAPSCRIPTVERSION" ]]; then
update_message="A newer version ($remote_version) is available! You can find more information by visiting https://github.com/auanasgheps/snapraid-aio-script/releases"
echo "$update_message"
Expand Down

0 comments on commit 77a3e34

Please sign in to comment.