From 265e155181a5d8c14bc2ef69629b2b4762eda86e Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Thu, 15 Apr 2021 08:09:36 -0700 Subject: [PATCH] Meta: Use basename for serenity.sh help message I have this symlinked into ~/bin, when looking at the help/usage it would previously print the fully qualified path to the script making the help very difficult to read. --- Meta/serenity.sh | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/Meta/serenity.sh b/Meta/serenity.sh index e4574465dd..03c3a65e79 100755 --- a/Meta/serenity.sh +++ b/Meta/serenity.sh @@ -3,56 +3,57 @@ set -e ARG0=$0 print_help() { + NAME=$(basename "$ARG0") cat <