From b8a973a91ac406266befcb36599ce8df64d096b9 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 16 Mar 2020 06:40:02 +0530 Subject: Update plugins to support some env vars --- plugins/mocplay | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mocplay') 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 -- cgit v1.2.3-70-g09d2