chiark / gitweb /
remove bashism
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 5 May 2008 00:51:54 +0000 (00:51 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 5 May 2008 00:51:54 +0000 (00:51 +0000)
get-sig

diff --git a/get-sig b/get-sig
index f1c0c41..19630dc 100755 (executable)
--- a/get-sig
+++ b/get-sig
@@ -1,6 +1,6 @@
-#! /bin/bash
+#! /bin/sh
 
-if [ "X$1" == "X" ]; then
+if [ -z "$1" ]; then
   NAME=$(grep '^\*' ~/.siglist | head -n 1 | tr -s '\t' ' ' | cut -d' ' -f2)
   if [ -z "$NAME" ]; then
     echo "Usage: $0 signature-group [pattern]" >&2