From 031b03d197e0425fd7617d78f56154594e763e5f Mon Sep 17 00:00:00 2001 From: G2-Games <72430668+G2-Games@users.noreply.github.com> Date: Mon, 19 Sep 2022 16:32:12 -0500 Subject: [PATCH] Fixed install when older version than 1.0 specified --- install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 7995102..62cee45 100755 --- a/install.sh +++ b/install.sh @@ -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 - 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 ; 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