contrib/thunderbird-patch-inline: do not require /bin/bash to run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



contrib/thunderbird-patch-inline: do not require /bin/bash to run

Modified the patch by incorporating the suggestions from Ángel
González <ingenit@xxxxxxxx> and Junio C Hamano <gitster@xxxxxxxxx>

Signed-off-by: Maxin B. John <maxin@xxxxxxxxxxxxxxx>
---
diff --git a/contrib/thunderbird-patch-inline/appp.sh
b/contrib/thunderbird-patch-inline/appp.sh
index cc518f3..1d109a5 100755
--- a/contrib/thunderbird-patch-inline/appp.sh
+++ b/contrib/thunderbird-patch-inline/appp.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
+#!/bin/sh
 # Copyright 2008 Lukas Sandström <luksan@xxxxxxxxx>
 #
 # AppendPatch - A script to be used together with ExternalEditor
-# for Mozilla Thunderbird to properly include pathes inline i e-mails.
+# for Mozilla Thunderbird to properly include patches inline in e-mails.

 # ExternalEditor can be downloaded at http://globs.org/articles.php?lng=en&pg=2

@@ -16,7 +16,12 @@ else
        cd > /dev/null
 fi

-PATCH=$(zenity --file-selection)
+#check whether zenity is present
+if ! type zenity >/dev/null 2>&1 ; then
+       exit 1
+fi
+
+PATCH=`zenity --file-selection`

 if [ "$?" != "0" ] ; then
        #zenity --error --text "No patchfile given."
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]