install-on-USB bash not sh

Post Reply
julian67
Posts: 1
Joined: 9. May 2010, 16:14

install-on-USB bash not sh

Post by julian67 »

The install-on-USB script has #!/bin/sh shebang but actually it is a bash script i.e. it uses bashisms and on a system which doesn't have bash as the default shell the script fails. The reason for its failure will not be apparent to many/most users. Debian and its widely used derivatives use dash and (I think) all the BSDs use ksh or csh. So perhaps it would be helpful to change the shebang to #!/bin/bash which is much easier than changing the script to one that is intrinsically portable.
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: install-on-USB bash not sh

Post by JRD »

Thank you, I'll consider this (either check it for sh-compatibility or use bash in the #!)
Image
Post Reply