diff options
author | Peter | 2022-10-24 19:44:29 +0100 |
---|---|---|
committer | Peter | 2022-10-24 19:44:29 +0100 |
commit | d46570528a90508e2f6bf2289710a3fc3e49f0b3 (patch) | |
tree | 20f5c175fc77e849161d4958d4399dbb8709089f | |
parent | 65f0ff89a05b54f9f81605aed4aa06f47c9fe46e (diff) | |
download | dotfiles-d46570528a90508e2f6bf2289710a3fc3e49f0b3.tar.gz dotfiles-d46570528a90508e2f6bf2289710a3fc3e49f0b3.tar.bz2 dotfiles-d46570528a90508e2f6bf2289710a3fc3e49f0b3.zip |
Replace script name variable with bash builtin
-rwxr-xr-x | .local/bin/overtid | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/.local/bin/overtid b/.local/bin/overtid index 3e16dad..85043c6 100755 --- a/.local/bin/overtid +++ b/.local/bin/overtid @@ -8,8 +8,7 @@ start="$(date -d "Yesterday $time_input" "+%s")" # check for arguments if [ $# -eq 0 ]; then - script="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" - printf "Decimal overtime calculator\\nUsage: %s HH:MM\\n" "${script%.*}" + printf "Decimal overtime calculator\\nUsage: %s HH:MM\\n" "${0##*/}" exit 1 fi |