Added error handeling for init.sh
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
#!/bin/ash
|
||||
#Get Resources
|
||||
curl -L --retry 7 --retry-delay 5 GetAddr -o /opt/Setup/File
|
||||
CurrentVersion=$(curl -s https://api.github.com/repos/dutchcoders/transfer.sh/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " ")
|
||||
echo $CurrentVersion > /opt/transfer.sh/Version
|
||||
curl -L --retry 7 --retry-delay 5 https://github.com/dutchcoders/transfer.sh/releases/download/"$CurrentVersion"/transfersh-"$CurrentVersion"-linux-amd64 -o /opt/transfer.sh/transfersh-linux-amd64
|
||||
curl -L --retry 7 --retry-delay 5 https://github.com/dutchcoders/transfer.sh/releases/download/"$CurrentVersion"/transfersh-"$CurrentVersion"-linux-amd64 -o /opt/transfer.sh/transfersh-linux-amd64 || exit 1
|
||||
|
||||
#Setup
|
||||
addgroup transfersh
|
||||
|
||||
Reference in New Issue
Block a user