mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Fixed install when older version than 1.0 specified
This commit is contained in:
parent
7ae07f7650
commit
031b03d197
1 changed files with 6 additions and 2 deletions
|
@ -14,11 +14,15 @@ then
|
|||
if which curl >/dev/null ;
|
||||
then
|
||||
curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output ~/.welcome/welcome.sh
|
||||
if [[ $(echo $version | sed 's/[.][.]*//g' ) -ge 100 ]]; then
|
||||
curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/config.cfg --output ~/.welcome/config.cfg
|
||||
fi
|
||||
elif which wget >/dev/null ;
|
||||
then
|
||||
wget https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --P ~/.welcome/
|
||||
wget https://github.com/G2-Games/welcome.sh/releases/download/v${version}/config.cfg --P ~/.welcome/
|
||||
if [[ $(echo $version | sed 's/[.][.]*//g' ) -ge 100 ]]; then
|
||||
wget https://github.com/G2-Games/welcome.sh/releases/download/v${version}/config.cfg --P ~
|
||||
fi
|
||||
else
|
||||
echo "Cannot download, neither wget nor curl is available."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue