diff options
author | Miquel Lionel <lionelmiquel@sfr.fr> | 2020-11-19 00:57:34 +0100 |
---|---|---|
committer | root <root@localhost> | 2020-11-19 00:57:34 +0100 |
commit | 332c2fc03e4a596cc42c23698a73295fed389f73 (patch) | |
tree | 2baf38774b9c65899b776cef7c6ae54d9fe6efe6 | |
parent | 8b5157bb5cd4e3abce4a064a1a0efd2870657f7a (diff) | |
download | randopitons-332c2fc03e4a596cc42c23698a73295fed389f73.tar.gz randopitons-332c2fc03e4a596cc42c23698a73295fed389f73.zip |
removing useless LOGIN_OK variable
-rw-r--r-- | randopitons.sh | 4 |
1 files changed, 0 insertions, 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 |