tst is a shell script that does specify which interpreter should be used and therefore the system falls back to try /bin/sh.
However the script is using bash extensions ([ "$1" == "" ]) which won't work with *any* sh-type shell. Debian is using dash as /bin/sh and there an error is thrown, Centos is probably using bash.
So this is not a bug but a user error. If you want to use bash-extension you'll need to take care that the script runs under bash by using a correct #!-line.
Hello,
tst is a shell script that does specify which interpreter should be used and therefore the system falls back to try /bin/sh.
However the script is using bash extensions ([ "$1" == "" ]) which won't work with *any* sh-type shell. Debian is using dash as /bin/sh and there an error is thrown, Centos is probably using bash.
So this is not a bug but a user error. If you want to use bash-extension you'll need to take care that the script runs under bash by using a correct #!-line.
Closing.