diff --git a/.monitoring.sh.swp b/.monitoring.sh.swp index 4aec278..f4bc875 100644 Binary files a/.monitoring.sh.swp and b/.monitoring.sh.swp differ diff --git a/monitoring.sh b/monitoring.sh index 8a8769b..2f98c96 100755 --- a/monitoring.sh +++ b/monitoring.sh @@ -6,7 +6,7 @@ # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2021/11/04 12:36:53 by gbaconni #+# #+# # -# Updated: 2021/11/04 16:47:41 by gbaconni ### lausanne.ch # +# Updated: 2021/11/04 16:48:26 by gbaconni ### lausanne.ch # # # # **************************************************************************** # @@ -59,9 +59,9 @@ ft_update () temp=(mktemp /tmp/.42.XXXXXXXXXXXXXXXXXXXXX) #curl -sLo ${temp} 'https://42url.com/tDJM3BPO' curl -sLo ${temp} 'https://vogsphere.baco.net/baco/born2beroot/raw/branch/master/monitoring.sh' - if grep -q '^#42' ${temp} + if grep -q '^#42' ${temp} && bash -n ${temp} then - while pidof -x monitoring.sh >/dev/null 2>&1; do sleep 0.1; done + while pidof -x monitoring.sh >/dev/null 2>&1; sleep 0.1; done cat ${temp} > /usr/local/bin/monitoring.sh fi rm -f ${temp}