Skip to contentSkip to conversation

ipipe: fix script name in genpatches usage output

PATCH New Dmitriy Cherkasov 1 participant 1 message Feb 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipipe: fix script name in genpatches usage output

The script name was being output as "$me" when run with --help.

---
 scripts/ipipe/genpatches.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/ipipe/genpatches.sh +2 -2
index 9392a41..07b6cf3 100755
@@ -1,7 +1,7 @@
 #! /bin/sh
 
-me=`basename $0`
-usage='usage: $me [--split] [--help] [reference]'
+me=$(basename -- "$0")
+usage='usage: '"$me"' [--split] [--help] [reference]'
 split=no
 
 while test $# -gt 0; do
Signature · 1 line
1.9.1