Fix $EDITOR check

This commit is contained in:
Jiří Štefka 2023-02-27 01:15:02 +01:00
parent 02b3d0fa54
commit 4763f4038a

@ -466,7 +466,8 @@ if [[ "$1" == "--redownload" ]] || [[ "$1" == "-r" ]]; then
exec "$0" exec "$0"
exit 0 exit 0
elif [[ "$1" == "--edit-config" ]] || [[ "$1" == "-e" ]]; then elif [[ "$1" == "--edit-config" ]] || [[ "$1" == "-e" ]]; then
if [[ command -v $EDITOR &> /dev/null ]]; then if command -v $EDITOR &> /dev/null
then
$EDITOR msman.cfg $EDITOR msman.cfg
else else
echo "EDITOR is not set." echo "EDITOR is not set."