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
{{ message }}
Repository navigation
wpcc --help shows literal $SCRIPT_VERSION instead of version number #132
The single quotes around EOF create a quoted heredoc, which tells bash to print everything literally without variable expansion. Line 508 contains $SCRIPT_VERSION but it's never expanded because of the quoting.
Fix
Change line 405 from:
cat << 'EOF'
to:
cat <<EOF
This allows $SCRIPT_VERSION (defined at line 78 as SCRIPT_VERSION="2.0.14") to be expanded in the help text output.
Note: When removing the quotes, check that the rest of the heredoc doesn't contain other $ characters that would be unintentionally expanded. A quick scan shows no other $ references in the help text block (lines 406-509), so this change is safe.
Activity