mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 13:32:53 -05:00
Version bump and proper wget support
This commit is contained in:
parent
cf6634a9d5
commit
798025c9fa
1 changed files with 11 additions and 2 deletions
13
install.sh
13
install.sh
|
@ -1,4 +1,4 @@
|
||||||
version=0.2
|
version=0.2.1
|
||||||
bashrc="/home/$USER/.bashrc"
|
bashrc="/home/$USER/.bashrc"
|
||||||
zshrc="/home/$USER/.zshrc"
|
zshrc="/home/$USER/.zshrc"
|
||||||
originaldir=$PWD
|
originaldir=$PWD
|
||||||
|
@ -11,7 +11,16 @@ then
|
||||||
echo "Welcome! Installing..."
|
echo "Welcome! Installing..."
|
||||||
cd /home/$USER
|
cd /home/$USER
|
||||||
mkdir -p /home/$USER/.welcome
|
mkdir -p /home/$USER/.welcome
|
||||||
curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output /home/$USER/.welcome/welcome.sh
|
if which curl >/dev/null ;
|
||||||
|
then
|
||||||
|
curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output /home/$USER/.welcome/welcome.sh
|
||||||
|
elif which wget >/dev/null ;
|
||||||
|
then
|
||||||
|
wget https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output-file /home/$USER/.welcome/welcome.sh
|
||||||
|
else
|
||||||
|
echo "Cannot download, neither wget nor curl is available."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
chmod +x /home/$USER/.welcome/welcome.sh
|
chmod +x /home/$USER/.welcome/welcome.sh
|
||||||
if [[ "$environment" = "/usr/bin/bash" ]];
|
if [[ "$environment" = "/usr/bin/bash" ]];
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue