sorry it took some longer than expected to test this out. I’m afraid that your script is currently not working fine on OS X.
If I try it fresh from the repo, I get:
gogs_upgrader lieven$ ./upgrade.sh
./upgrade.sh: line 124: unexpected EOF while looking for matching‘’
./upgrade.sh: line 157: syntax error: unexpected end of file
If I comment out lines 123 - 124 then the script starts.
But then the detection of the remote version fails with:
You are trying to upgrade gogs as user lieven, is this your default gogs user?[Y/N] Y Checking remote version... head: illegal byte count -- -2 ./upgrade.sh: line 75: [: 0.9.13: unary operator expected Update Found! Local version: 0.9.13 Remote version: Select update source B=Binary, S=Source C=Close:
If there is anything I can help you with to debug this further then please let me know.