From 6a9640afdf07769c9be891cfae6660179b403db3 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 6 Jun 2017 21:37:16 +0530 Subject: Exit once an app is found. Help, doc updates. --- nlay | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nlay') 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 -- cgit v1.2.3-70-g09d2