[PATCH 3/9] Eliminate the full path to the script in usage output

Bhaskar Chowdhury posted 9 patches 3 months, 2 weeks ago
[PATCH 3/9] Eliminate the full path to the script in usage output
Posted by Bhaskar Chowdhury 3 months, 2 weeks ago
Clean to the usage outputted text without full path of the script

Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
---
 smatch_scripts/filter_kernel_deref_check.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/smatch_scripts/filter_kernel_deref_check.sh b/smatch_scripts/filter_kernel_deref_check.sh
index c70d7994ead9..88071a464c45 100755
--- a/smatch_scripts/filter_kernel_deref_check.sh
+++ b/smatch_scripts/filter_kernel_deref_check.sh
@@ -2,7 +2,7 @@

 file=$1
 if [[ "$file" = "" ]] ; then
-    echo "Usage:  $0 <file with smatch messages>"
+	echo "Usage:  $(basename $0) <file with smatch messages>"
     exit 1
 fi

--
2.46.3