From 4763f4038ae1e3099bcecb843c1c9b147558e0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Mon, 27 Feb 2023 01:15:02 +0100 Subject: [PATCH] Fix $EDITOR check --- msman.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msman.sh b/msman.sh index c36d773..d26bca1 100755 --- a/msman.sh +++ b/msman.sh @@ -466,7 +466,8 @@ if [[ "$1" == "--redownload" ]] || [[ "$1" == "-r" ]]; then exec "$0" exit 0 elif [[ "$1" == "--edit-config" ]] || [[ "$1" == "-e" ]]; then - if [[ command -v $EDITOR &> /dev/null ]]; then + if command -v $EDITOR &> /dev/null + then $EDITOR msman.cfg else echo "EDITOR is not set."