-1

What is the equivalent expression in sh of the following bash expression?

[ ! "${LOCAL}" == "true" ] && echo "other" || echo "local"
funk
  • 1,921
  • 1
  • 21
  • 22

1 Answers1

0

Based on Shawn's comment this is the answer on the initial question

[ ! "${LOCAL}" = "true" ] && echo "other" || echo "local"
funk
  • 1,921
  • 1
  • 21
  • 22