79289018

Date: 2024-12-17 18:43:58
Score: 1
Natty:
Report link

What shell are you using? Have you got a set -u somewhere in play? Try this:

if [ "${1:-}" = "" ]; then
    log "Usage: $0 program [args]"
    exit 1
fi

OR:

if [ $# -eq 0 ]; then
    log "Usage: $0 program [args]"
    exit 1
fi
Reasons:
  • Whitelisted phrase (-2): Try this:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: avalon20