From 79040c989a283afb21092b939eb1ed36b2f5a94f Mon Sep 17 00:00:00 2001 From: user2 Date: Fri, 2 Jul 2021 17:28:11 +0300 Subject: [PATCH] don't display anything if page not found --- update_cec_list.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update_cec_list.bash b/update_cec_list.bash index 73439f6..ca78249 100755 --- a/update_cec_list.bash +++ b/update_cec_list.bash @@ -4,8 +4,8 @@ cd ~/CEC_monitoring || { exit 1; echo "changing directory failed"; exit 1; } http_response=$(curl -s -L -o list.csv -w "%{http_code}" "https://docs.google.com/spreadsheets/d/e/2PACX-1vTXE8HCavThmJt1Wshy3GyF2ZJ-264SbNRVucsPUe2rbEgpm-e3tqsX-8K2mwsG4ozBj6qUyOOd4RMe/pub?gid=1832580214&single=true&output=csv") if [ $http_response != "200" ]; then - echo "page not found" - cat list.csv + #echo "page not found" + #cat list.csv git reset --hard exit 1