X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fgrml-exec-wrapper;h=5466d024e0a625c54b13961b3a48296334aafa12;hb=dcb6090b9e23b455fb7b043c340508e3373e6a40;hp=6ea449d546c0767628fe72b86c77dfcef0619807;hpb=d392e93e0759e2d744c5614ac8bc363372134116;p=grml-scripts-core.git diff --git a/usr_bin/grml-exec-wrapper b/usr_bin/grml-exec-wrapper index 6ea449d..5466d02 100755 --- 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: @@ -46,10 +45,10 @@ case $PROG in esac if is_installed "$PROG" ; then - exec $@ -else - RC=1 - display_info "Sorry: ${PROG} not available. + exec "$@" +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 #################################################################