Syntax error: Bad fd number

simply wrote a script on ubuntu, once run the Syntax error: Bad fd number

then found the method

on stackoverflow

rm -rf /bin/sh
ln -s /bin/bash /bin/sh

After
, the sh file is ready to run normally

Read More: