CloudFormation Backup Machine specifies /bin/sh in package.sh

Michael Palmer-Gee
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2020

CloudFormation Backup Machine specifies /bin/sh in package.sh but the script isn't fully POSIX compliant (e.g. use of [[ ]]). This is fine in most cases because /bin/sh is often symbolically linked to bash. But in cases where /bin/sh is linked to something else (like later versions of Ubuntu which link to dash), this causes the script to crash. This link provides some good background: https://wiki.ubuntu.com/DashAsBinSh.

My suggestion is that the Atlassian team should either, change the script to be POSIX compliant, or explicitly link to bash... which causes its own problems but, at least, would make the script fall over earlier and be more obvious to fix.

Thoughts?

Mike

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events