projects
/
grml-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6c4d5f
)
Drop redirection of is_installed() output, thanks ft!
author
Michael Prokop
<mika@grml.org>
Sun, 15 Feb 2009 16:13:30 +0000
(17:13 +0100)
committer
Michael Prokop
<mika@grml.org>
Sun, 15 Feb 2009 16:13:30 +0000
(17:13 +0100)
usr_bin/grml-exec-wrapper
patch
|
blob
|
history
diff --git
a/usr_bin/grml-exec-wrapper
b/usr_bin/grml-exec-wrapper
index
ed97b86
..
6ea449d
100755
(executable)
--- a/
usr_bin/grml-exec-wrapper
+++ b/
usr_bin/grml-exec-wrapper
@@
-25,7
+25,7
@@
is_installed() {
# use Xdisplay only if present and running under X:
display_info() {
-if is_installed Xdialog
1>/dev/null 2>&1
&& test -n "$DISPLAY" ; then
+if is_installed Xdialog && test -n "$DISPLAY" ; then
Xdialog --title "grml-exec-wrapper" --msgbox "$1" 0 0 0
else
print "$1">&2
@@
-45,7
+45,7
@@
case $PROG in
*sudo*) PROG="$2" ;;
esac
-if is_installed "$PROG"
1>/dev/null 2>&1
; then
+if is_installed "$PROG" ; then
exec $@
else
RC=1