' P '

whatever I will forget

[: -ep: binary operator expected 発生

下記のように-eqとしていると

if [ "$1" -eq "1" ]; then

下記エラー発生。
x.sh: line 9: [: -ep: binary operator expected

下記にようにしたらエラーでなくなった。

if [ "$1" = "1" ]; then
  # logic
elif [ "$1" = "2" ]; then
  # logic
else
  echo "Input mode 1 or 2."
  exit 1
fi