fix: $ENV_DIR -> $ETC_DIR and add updated message

This commit is contained in:
2025-06-18 20:49:16 +02:00
parent 1984b4fe70
commit 98aa864306
2 changed files with 8 additions and 3 deletions

View File

@@ -67,8 +67,13 @@ create_env_variable() {
local value="$2"
if [[ -z "$value" ]]; then
datetime_print "$key not set (empty input)."
return
if grep -q "^$key=*" "$ENV_FILE" 2>/dev/null; then
datetime_print "$key not updated."
return
else
datetime_print "$key not set (empty input)."
return
fi
fi
if grep -q "^$key=" "$ENV_FILE" 2>/dev/null; then