Your code is inconsistent with your changelog, your changelog says If the packaging fails, the softlink should not be established. if so, change like this: [ "$?" == 0 ] && create_softlink
[ $? == 0 ] => this mean that build failure, the condition is true.
if condition is true, should not create softlink, so use "||" to be correct.
Oh, sorry i misunderstood. i thought [ $? == 0 ] this mean that build success.
Thanks, Zhangyu