From 332c2fc03e4a596cc42c23698a73295fed389f73 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Thu, 19 Nov 2020 00:57:34 +0100 Subject: removing useless LOGIN_OK variable --- randopitons.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/randopitons.sh b/randopitons.sh index 013dfa3..024daa2 100644 --- a/randopitons.sh +++ b/randopitons.sh @@ -21,8 +21,6 @@ MATCHEDFILE="$(mktemp)" MAPTYPE="gpx" RDPUSER= RDPUSERPASS= -LOGINOK= - #Filechecks mkdir -p $DATADIR @@ -99,11 +97,9 @@ _logincheck() LOGINTEST=$(wget --no-config -qO- --save-cookies $COOKIES_FILE --keep-session-cookies --post-data="mail=${RDPUSER}&password=${RDPUSERPASS}" --delete-after https://randopitons.re/connexion | grep "L'adresse mail ou le mot de passe ne correspondent pas.") if [ -z "$LOGINTEST" ];then printf "${GREEN}Login is successful.${STYLE_END}\n" - LOGINOK=true mkdir -p "$DATADIR/randopfiles" else echo "${RED}Login is not successful.${STYLE_END}\n" - LOGINOK=false rm $COOKIES_FILE exit fi -- cgit v1.2.3-70-g09d2