shellharden.sh 257 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. set -eu -o pipefail
  3. DEBUG=${DEBUG:=0}
  4. if [[ "$DEBUG" = "1" ]]; then
  5. set -o xtrace
  6. fi
  7. if ! hash shellharden 2>/dev/null; then
  8. cat <<< "[ERROR] 'shellharden' not found." 1>&2;
  9. exit 78
  10. fi
  11. echo "$@"
  12. exit 1
  13. shellharden --check "$@"