Print current script name in usage

dev
hkbakke 2017-03-18 13:23:57 +01:00 committed by GitHub
parent 61e25f494e
commit 0f732f221e
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ CONFIG="/etc/borgwrapper/config.sh"
print_usage () {
echo "Usage: borgwrapper.sh MODE"
echo "Usage: $(basename "${BASH_SOURCE[0]}") MODE"
echo ""
echo "arguments:"
echo " MODE init|backup|verify|unlock|exec"