diff --git a/scripts/update.sh b/scripts/update.sh index 4c14f1d..e1a6bae 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -93,10 +93,12 @@ conflict_old=() conflict_new=() while IFS='=' read -r key value; do [ -n "$value" ] || continue - current="$(grep -E "^${key}=" .env | head -1 | cut -d= -f2-)" if ! grep -qE "^${key}=" .env; then echo "${key}=${value}" >> .env - elif [ "$current" != "$value" ]; then + continue + fi + current="$(grep -E "^${key}=" .env | head -1 | cut -d= -f2-)" + if [ "$current" != "$value" ]; then conflict_keys+=("$key") conflict_old+=("$current") conflict_new+=("$value")