Fix $EDITOR check
This commit is contained in:
parent
02b3d0fa54
commit
4763f4038a
3
msman.sh
3
msman.sh
@ -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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user