simplify
This commit is contained in:
+3
-3
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
script_name=${0##*/}
|
||||
script_name=$(basename "$0")
|
||||
|
||||
if (( $# == 0 )); then
|
||||
if [ "$#" -eq 0 ]; then
|
||||
echo "Usage: $script_name command [args ...]" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user