mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 13:32: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 ;
|
if which curl >/dev/null ;
|
||||||
then
|
then
|
||||||
curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output ~/.welcome/welcome.sh
|
curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output ~/.welcome/welcome.sh
|
||||||
curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/config.cfg --output ~/.welcome/config.cfg
|
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 ;
|
elif which wget >/dev/null ;
|
||||||
then
|
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}/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
|
else
|
||||||
echo "Cannot download, neither wget nor curl is available."
|
echo "Cannot download, neither wget nor curl is available."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue