diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-04-21 11:10:37 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-04-21 14:58:23 +0200 |
commit | 079a49eaaa5a6bacca3181671abd8ebb72015fd1 (patch) | |
tree | fd956e35d17bf41f173d02613c0c31a350291d89 /libexec/app-run-hook | |
parent | c8a9de50c8f7254c61888982ae270bf71c3f8506 (diff) | |
download | app.sh-079a49eaaa5a6bacca3181671abd8ebb72015fd1.tar.gz app.sh-079a49eaaa5a6bacca3181671abd8ebb72015fd1.tar.bz2 app.sh-079a49eaaa5a6bacca3181671abd8ebb72015fd1.tar.xz app.sh-079a49eaaa5a6bacca3181671abd8ebb72015fd1.zip |
o Allowing the 'app' wrapper to run apps from libexec too.
Diffstat (limited to 'libexec/app-run-hook')
-rwxr-xr-x | libexec/app-run-hook | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libexec/app-run-hook b/libexec/app-run-hook index f1b2457..9322fe4 100755 --- a/libexec/app-run-hook +++ b/libexec/app-run-hook @@ -43,7 +43,13 @@ then exit 0 fi -# TODO: remove after -#chmod +x $bin +chmod +x $bin + +if [[ ! -e $bin ]] +then + info "Not executable: $bin" + exit 0 +fi + debug "Running hook: $hook" run_app -v $version hooks/$hook |