From a93e9574c8204669c110e59658deeeb4aff7d7e0 Mon Sep 17 00:00:00 2001 From: Valentin <43043885+itsmrval@users.noreply.github.com> Date: Thu, 14 Sep 2023 23:37:49 +0200 Subject: [PATCH] Update update.sh --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index d053d61..a0b6ec6 100644 --- a/update.sh +++ b/update.sh @@ -8,7 +8,7 @@ then old_file=/opt/accessgate_agent/old_user.txt isDifferent=false curl -o $tmp_file -X GET -H 'Content-Type: application/json' -d '{"secret": "'$secret'"}' $url/endpoint/update/$server/users - [[ -f filename ]] || touch $old_file + touch $old_file cmp --silent $old_file $tmp_file || isDifferent=true if [ isDifferent = "true" ]