summaryrefslogtreecommitdiff
path: root/src/bin/eet
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-03-08 10:55:37 +0000
committerTom Hacohen <tom@stosb.com>2014-03-08 10:55:37 +0000
commit561ea66dec5ddb9dd7bdbc794e3cbc25f7db17a1 (patch)
tree8139fde6631161a22a49ce3cf80971eb5dc9e9ad /src/bin/eet
parenta660bbe966e1373eba02f8534e44abd115b8c387 (diff)
Eet vieet: Fixed to work on non-bash compat shells.
Thanks to Davide Andreoli for reporting and suggesting fixes.
Diffstat (limited to 'src/bin/eet')
-rwxr-xr-xsrc/bin/eet/vieet8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/eet/vieet b/src/bin/eet/vieet
index 8c38a10..64f7d88 100755
--- a/src/bin/eet/vieet
+++ b/src/bin/eet/vieet
@@ -1,19 +1,19 @@
1#!/bin/sh 1#!/bin/sh
2 2
3function cleanup() { 3cleanup() {
4 if [ ! -z "$TFILE" ]; then 4 if [ ! -z "$TFILE" ]; then
5 rm "$TFILE" 5 rm "$TFILE"
6 fi 6 fi
7} 7}
8 8
9function die() { 9die() {
10 echo "$@" 10 echo "$@"
11 echo "Aborting" 11 echo "Aborting"
12 cleanup 12 cleanup
13 exit 1 13 exit 1
14} 14}
15 15
16function usage() { 16usage() {
17 die "Usage: vieet <eet file> <section>" 17 die "Usage: vieet <eet file> <section>"
18} 18}
19 19
@@ -21,7 +21,7 @@ if [ $# -ne 2 ]; then
21 usage 21 usage
22fi 22fi
23 23
24if [[ -z "$EDITOR" ]]; then 24if [ -z "$EDITOR" ]; then
25 die "EDITOR env var must be set." 25 die "EDITOR env var must be set."
26fi 26fi
27 27