dash
is a very strict POSIX shell, if it work in dash
it is almost certain it would work in other POSIX shell.
Try:
if [ "$var" = "string" ]
then
some_command
fi
dash
is a very strict POSIX shell, if it work in dash
it is almost certain it would work in other POSIX shell.
Try:
if [ "$var" = "string" ]
then
some_command
fi