-1

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

[ ! "${LOCAL}" == "true" ] && echo "other" || echo "local"
funk
  • 2,221
  • 1
  • 24
  • 23

1 Answers1

0

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

[ ! "${LOCAL}" = "true" ] && echo "other" || echo "local"
funk
  • 2,221
  • 1
  • 24
  • 23