[PATCH] Remove "bashism" from contrib/thunderbird-patch-inline/appp.sh
- From
- Maxin john <maxin@maxinbjohn.info>
- Date
- Mar 27, 2011, 14:37 UTC
- Message-ID
- <AANLkTin-USDnTxeKT_KOZW5kgC0vFXYbMNP9ct6fzbUC@mail.gmail.com>
Remove "bashism" and minor corrections for contrib/thunderbird-patch-inline/appp.sh
Signed-off-by: Maxin B. John <maxin@maxinbjohn.info> ---
diff --git a/contrib/thunderbird-patch-inline/appp.sh b/contrib/thunderbird-patch-inline/appp.sh index cc518f3..1d29f4b 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@gmail.com> # # 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,6 +16,11 @@ else cd > /dev/null fi +#check whether zenity is present +if ! type zenity >/dev/null 2>&1 ; then + exit 1 +fi + PATCH=$(zenity --file-selection) if [ "$?" != "0" ] ; then