projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a660bbe
)
Eet vieet: Fixed to work on non-bash compat shells.
author
Tom Hacohen
<tom@stosb.com>
Sat, 8 Mar 2014 10:55:37 +0000
(10:55 +0000)
committer
Tom Hacohen
<tom@stosb.com>
Sat, 8 Mar 2014 10:55:37 +0000
(10:55 +0000)
Thanks to Davide Andreoli for reporting and suggesting fixes.
src/bin/eet/vieet
patch
|
blob
|
history
diff --git
a/src/bin/eet/vieet
b/src/bin/eet/vieet
index
8c38a10
..
64f7d88
100755
(executable)
--- a/
src/bin/eet/vieet
+++ b/
src/bin/eet/vieet
@@
-1,19
+1,19
@@
#!/bin/sh
-
function
cleanup() {
+cleanup() {
if [ ! -z "$TFILE" ]; then
rm "$TFILE"
fi
}
-
function
die() {
+die() {
echo "$@"
echo "Aborting"
cleanup
exit 1
}
-
function
usage() {
+usage() {
die "Usage: vieet <eet file> <section>"
}
@@
-21,7
+21,7
@@
if [ $# -ne 2 ]; then
usage
fi
-if [
[ -z "$EDITOR" ]
]; then
+if [
-z "$EDITOR"
]; then
die "EDITOR env var must be set."
fi