projects
/
grml-scripts-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d03a386
)
grml-exec-wrapper: remove uneeded variable and else path
author
Frank Terbeck
<ft@bewatermyfriend.org>
Sun, 15 Feb 2009 16:55:43 +0000
(17:55 +0100)
committer
Frank Terbeck
<ft@bewatermyfriend.org>
Sun, 15 Feb 2009 17:08:21 +0000
(18:08 +0100)
usr_bin/grml-exec-wrapper
patch
|
blob
|
history
diff --git
a/usr_bin/grml-exec-wrapper
b/usr_bin/grml-exec-wrapper
index
cd51cae
..
5466d02
100755
(executable)
--- a/
usr_bin/grml-exec-wrapper
+++ b/
usr_bin/grml-exec-wrapper
@@
-37,7
+37,6
@@
if [ -z "$1" ] ; then
exit 1
fi
-RC='0'
PROG="$1"
# make sure to support 'grml-exec-wrapper sudo wireshark' as well:
@@
-47,9
+46,9
@@
esac
if is_installed "$PROG" ; then
exec "$@"
-else
- RC=1
-
display_info "Sorry: ${PROG} not available.
+fi
+
+display_info "Sorry: ${PROG} not available.
Looks like the grml flavour you are using does not ship ${PROG}. :(
@@
-57,8
+56,7
@@
You can search for ${PROG} executing:
apt-get update && apt-cache search ${PROG}
"
-fi
-exit
$RC
+exit
1
## END OF FILE #################################################################