diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-16 21:08:54 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-16 21:08:54 +0200 |
| commit | cde0c2c3259743ab0f63ff19d1a9b87298df41f3 (patch) | |
| tree | fc743306de3f6090c257cab6c5f643b35522076a | |
| parent | 001b21edafd026e8346ec15212469f0d11cd2fb8 (diff) | |
Use Basename for Messages
| -rwxr-xr-x | dbx | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ RUNTIMEDIR="${XDG_RUNTIME_DIR:-/run/user/$UID}/dbx" usage() { cat <<USAGE -usage: $0 [COMMAND] [OPTIONS...] [ARGS...] +usage: $(basename "$0") [COMMAND] [OPTIONS...] [ARGS...] commands: cp copies files to and from a devbox create create a new devbox @@ -82,7 +82,7 @@ perror() { local code="$1" local msg="$2" - printf "%s: %s\n" "$0" "$msg" >&2 + printf "%s: %s\n" "$(basename "$0")" "$msg" >&2 exit "$code" } |
