[PATCH 2/9] Looks nicer in usage output without the full path of the script

Bhaskar Chowdhury posted 9 patches 3 months, 2 weeks ago
[PATCH 2/9] Looks nicer in usage output without the full path of the script
Posted by Bhaskar Chowdhury 3 months, 2 weeks ago
Add basename to scriptname for the clean look of the output.

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

diff --git a/smatch_scripts/build_kernel_data.sh b/smatch_scripts/build_kernel_data.sh
index 87f1f0639c55..c338da6e43e4 100755
--- a/smatch_scripts/build_kernel_data.sh
+++ b/smatch_scripts/build_kernel_data.sh
@@ -6,7 +6,7 @@ PROJECT=kernel

 function usage {
     echo
-    echo "Usage:  $0"
+    echo "Usage:  $(basename $0)"
     echo "Updates the smatch_data/ directory and builds the smatch database"
     echo
     exit 1
--
2.46.3