hide.client.linux
hide.client.linux copied to clipboard
scripts uses bash idioms in ash script
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 [ ]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 ]