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