bash operator -eq is for integers not strings

This commit is contained in:
Christophe Nanteuil 2023-10-07 20:00:58 +02:00
parent 09978df9bf
commit ebd8c8c849
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ _usage() {
LAUNCH_EDIT=1
if [ $# -eq 2 ]; then
if [ "$1" -eq "-n" ] || [ "$1" -eq "--no-edit" ]; then
if [ "$1" = "-n" ] || [ "$1" = "--no-edit" ]; then
LAUNCH_EDIT=0
else
_usage