replacing bash || with function
This commit is contained in:
parent
35bec1405f
commit
87561453cb
@ -94,13 +94,16 @@ echo ""
|
||||
|
||||
fonct_TouchePourContinuer
|
||||
clear
|
||||
mkdir -p $HOME/bin/ || echo "Error, mkdir bin failed"exit
|
||||
mkdir -p $HOME/.icons/ || echo "Error, mkdir icons failed";exit
|
||||
mkdir -p $HOME/.config/autostart/ || echo "Error, mkdir autostart failed";exit
|
||||
mkdir -p $HOME/bin/
|
||||
fonct_ArretSurErreur
|
||||
mkdir -p $HOME/.icons/
|
||||
fonct_ArretSurErreur
|
||||
mkdir -p $HOME/.config/autostart/
|
||||
fonct_ArretSurErreur
|
||||
|
||||
# Téléchargement syncthing
|
||||
wget --quiet $archive_url || echo "Error, downloading archive";exit
|
||||
tar -xzf $archivename -C $HOME/bin/ || echo "Error, untar archive failed";exit
|
||||
wget --quiet $archive_url
|
||||
tar -xzf $archivename -C $HOME/bin/
|
||||
mv $HOME/bin/syncthing* $HOME/bin/syncthing
|
||||
rm $archivename
|
||||
echo ""
|
||||
|
Loading…
Reference in New Issue
Block a user