aboutsummaryrefslogtreecommitdiffstats
path: root/nlay
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-06-06 21:37:16 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-06-06 23:32:40 +0530
commit6a9640afdf07769c9be891cfae6660179b403db3 (patch)
tree88cf11c83db8f6dea2f96746e865c9b26bbba421 /nlay
parentf52367a48168f95545bc15148b58076ce56155f8 (diff)
downloadnnn-6a9640afdf07769c9be891cfae6660179b403db3.tar.gz
Exit once an app is found. Help, doc updates.
Diffstat (limited to 'nlay')
-rwxr-xr-xnlay3
1 files changed, 2 insertions, 1 deletions
diff --git a/nlay b/nlay
index 53d89e3..437dd7e 100755
--- a/nlay
+++ b/nlay
@@ -88,5 +88,6 @@ fi
for index in ${!app[@]}
do
type -P ${app[$index]} &>/dev/null &&
- eval ${app[$index]} ${opts[$index]} "\"$1\"" ${bg[$index]}
+ eval ${app[$index]} ${opts[$index]} "\"$1\"" ${bg[$index]} &&
+ break
done