aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mocplay
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mocplay')
-rwxr-xr-xplugins/mocplay4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mocplay b/plugins/mocplay
index 30818b2..6f5a2a0 100755
--- a/plugins/mocplay
+++ b/plugins/mocplay
@@ -16,11 +16,11 @@ selection=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection
cmd=$(pgrep -x mocp 2>/dev/null)
ret=$cmd
-SHUFFLE=0
+SHUFFLE="${SHUFFLE:-0}"
mocp_add ()
{
- if [ $SHUFFLE = 1 ]; then
+ if [ "$SHUFFLE" = 1 ]; then
if [ "$resp" = "y" ]; then
arr=$(tr '\0' '\n' < "$selection")
elif [ -n "$1" ]; then