the scripts in scripts directory use a lot of bash idioms that will only run in bash and not ash or dash.
Please use bash in shellbang instead.
Some example:
if [[ ]] is bash only use if [ ] instead
accessToken=${accessToken//"\""/} string replacement is not available
Possible bug:
line 22 of hideme-accesToken.ash:
if [[ $? == "22" ]];
You compare the output result which is an integer to a string. that will always be false.
Use something like
if [ $? -eq 22 ]
of better if [ $? -ne 0 ]
the scripts in scripts directory use a lot of bash idioms that will only run in bash and not ash or dash.
Please use bash in shellbang instead.
Some example:
if [[ ]]
is bash only useif [ ]
insteadaccessToken=${accessToken//"\""/}
string replacement is not availablePossible bug:
line 22 of hideme-accesToken.ash:
if [[ $? == "22" ]];
You compare the output result which is an integer to a string. that will always be false. Use something like
if [ $? -eq 22 ]
of betterif [ $? -ne 0 ]