diff options
author | M.Gergo | 2020-03-25 01:28:02 +0100 |
---|---|---|
committer | M.Gergo | 2020-03-25 01:28:02 +0100 |
commit | 9229709aeaa2849c1f33db0819ac3865e7c29f61 (patch) | |
tree | 67c845504366c1c26ce2e0bdc5f9e68e14fff3e2 | |
parent | daf7f5f3d337c1fdf0dbe884c028ba4943b6fd97 (diff) | |
download | mayor-9229709aeaa2849c1f33db0819ac3865e7c29f61.tar.gz mayor-9229709aeaa2849c1f33db0819ac3865e7c29f61.zip |
checkupdate
-rwxr-xr-x | checkupdate.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/checkupdate.sh b/checkupdate.sh index f5e84388..c79ce5f8 100755 --- a/checkupdate.sh +++ b/checkupdate.sh @@ -1,14 +1,15 @@ #!/bin/bash +git checkout MaYor-dev + orev=$(cat rev.txt) nrev=$(wget http://www.mayor.hu/download/current/md5sum -O - | grep 'Revision' | cut -d ' ' -f 2) pd=$(pwd) -if [ "$nrev" -gt "$orev" ]; then - git checkout MaYor-dev +if [ "$nrev" -gt "$orev" ]; then wget http://www.mayor.hu/download/current/rev.txt -O rev.txt wget http://www.mayor.hu/download/current/md5sum -O mayor-orig/md5sum @@ -36,9 +37,7 @@ if [ "$nrev" -gt "$orev" ]; then git commit -a -m "Rev: $nrev" git tag -a "rev$nrev" -m "Rev: $nrev" - git checkout master - fi - +git checkout master
\ No newline at end of file |