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:
78cd3bc
)
exec-wrapper: deal with absolute path names in is_installed
author
Frank Terbeck
<ft@bewatermyfriend.org>
Sun, 5 Apr 2009 12:05:05 +0000
(14:05 +0200)
committer
Frank Terbeck
<ft@bewatermyfriend.org>
Sun, 5 Apr 2009 12:05:05 +0000
(14:05 +0200)
usr_bin/grml-exec-wrapper
patch
|
blob
|
history
diff --git
a/usr_bin/grml-exec-wrapper
b/usr_bin/grml-exec-wrapper
index
8159246
..
c7222b7
100755
(executable)
--- a/
usr_bin/grml-exec-wrapper
+++ b/
usr_bin/grml-exec-wrapper
@@
-10,6
+10,12
@@
is_installed() {
prog="$1"
[ -z "$prog" ] && return 1
+ case "${prog}" in
+ /*) # deal with absolute-path programs
+ [ -x "${prog}" ] && return 0
+ return 1 ;;
+ esac
+
ret=1
oifs="$IFS"
IFS=: