sh operator -eq is for integers not strings #203

Open
ChristopheNan wants to merge 1 commits from ChristopheNan/python-docs-fr:fuzzy_diff_bash into 3.11
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