You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix YAML parser to remove comments from parsed values (# and everything after)
- Fix PHP version check to redirect stderr and avoid warnings in output
- Add --debug mode with debug() function for verbose output
- Improve token handling: automatically add to .env.dist if it exists
- Add informative message when token is added to .env.dist
grep -A 20 "^${section}:""$CONFIG_FILE"2>/dev/null | grep "^\s*${key}:"| head -1 | awk -F: '{print $2}'| sed 's/^[[:space:]]*//;s/[[:space:]]*$//'| sed 's/^"//;s/"$//'| sed "s/^'//;s/'$//"||echo"$default"
161
+
grep -A 20 "^${section}:""$CONFIG_FILE"2>/dev/null | grep "^\s*${key}:"| head -1 | awk -F: '{print $2}'| sed 's/#.*$//'| sed 's/^[[:space:]]*//;s/[[:space:]]*$//'| sed 's/^"//;s/"$//'| sed "s/^'//;s/'$//"||echo"$default"
159
162
else
160
-
grep "^${key}:""$CONFIG_FILE"2>/dev/null | head -1 | awk -F: '{print $2}'| sed 's/^[[:space:]]*//;s/[[:space:]]*$//'| sed 's/^"//;s/"$//'| sed "s/^'//;s/'$//"||echo"$default"
163
+
grep "^${key}:""$CONFIG_FILE"2>/dev/null | head -1 | awk -F: '{print $2}'| sed 's/#.*$//'| sed 's/^[[:space:]]*//;s/[[:space:]]*$//'| sed 's/^"//;s/"$//'| sed "s/^'//;s/'$//"||echo"$default"
161
164
fi
162
165
}
163
166
@@ -184,6 +187,7 @@ load_config() {
184
187
fi
185
188
186
189
echo"$E_INFO Loading configuration from $CONFIG_FILE..."
0 commit comments