From 04ec742b7b8760f5461291f426d859a682d78693 Mon Sep 17 00:00:00 2001 From: Philippe Jean Guillaumie Date: Mon, 29 Apr 2024 11:33:25 +0200 Subject: [PATCH] Fix tokens logic --- elluminate.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elluminate.sh b/elluminate.sh index 02168ba..0799f9f 100644 --- a/elluminate.sh +++ b/elluminate.sh @@ -275,10 +275,10 @@ e_bkp() { } e_tokens() { - TOKEN=$(wc -l <$HOME/.cache/ebuilds/etokens) - echo $(date +%s) >>$HOME/.cache/ebuilds/etokens + TOKEN=$(wc -l <$HOME/.cache/ebuilds/etokens) + if [ "$TOKEN" -gt 3 ]; then echo # Questions: Enter either y or n, or press Enter to accept the default value (capital letter). @@ -571,7 +571,7 @@ do_tests() { fi if ! test -d "$HOME/.cache/ebuilds"; then - mkdir -p "$HOME/.cache/ebuilds/etokens" + mkdir -p "$HOME/.cache/ebuilds" fi }