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