aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mocplay
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-23 15:23:39 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-23 15:29:21 +0530
commitd4423467553a3adad831d241912af0a009a165aa (patch)
tree1a64cdaf98be617a67747b0e214964b567866026 /plugins/mocplay
parent78372b203a023ba8715b81e61fe19608627c916c (diff)
downloadnnn-d4423467553a3adad831d241912af0a009a165aa.tar.gz
Update mocplay to understand opener calls
Diffstat (limited to 'plugins/mocplay')
-rwxr-xr-xplugins/mocplay4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mocplay b/plugins/mocplay
index 211a3db..30818b2 100755
--- a/plugins/mocplay
+++ b/plugins/mocplay
@@ -57,7 +57,9 @@ if [ ! -s "$selection" ] && [ -z "$1" ]; then
exit
fi
-if [ -s "$selection" ]; then
+if [ "$2" = "opener" ]; then
+ :
+elif [ -s "$selection" ]; then
printf "Work with selection? Enter 'y' to confirm: "
read -r resp
fi