From 87561453cbe892df9e47df6bded7dcf446c42318 Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Thu, 19 May 2022 17:05:20 +0200 Subject: [PATCH] replacing bash || with function --- syncthing-install-auto.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/syncthing-install-auto.sh b/syncthing-install-auto.sh index 75bff7c..c682323 100644 --- a/syncthing-install-auto.sh +++ b/syncthing-install-auto.sh @@ -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 ""