replacing bash || with function

This commit is contained in:
Djan GICQUEL 2022-05-19 17:05:20 +02:00
parent 35bec1405f
commit 87561453cb

View File

@ -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 ""