Check Env Dep: Only match valid variable names
@@ -19,7 +19,7 @@ fi
printf '%s\n' "$ENV" | while IFS='' read -r env; do
# The script does **not** handle environment variables that contain newlines properly!
- printf '%s' "$env" | grep -Eq '.+=.*' || continue
+ printf '%s' "$env" | grep -Eq '^[_a-zA-Z][_a-zA-Z]*=.*' || continue
NAME="$(echo "$env" | cut -d '=' -f1 2> /dev/null)"
if [ "$NAME" = "KDB" ] || [ "$NAME" = "PATH" ]; then
continue
