PHPTradingBot icon indicating copy to clipboard operation
PHPTradingBot copied to clipboard

unexpected operator

Open AlexCroydon opened this issue 5 years ago • 3 comments

Please help sort this issue, I have spend 2 days with no luck

root@phpcryptobot:~/PHPTradingBot# sh services.sh services.sh: 3: [: =: unexpected operator services.sh: 31: [: =: unexpected operator services.sh: 63: [: =: unexpected operator services.sh: 68: [: =: unexpected operator

AlexCroydon avatar May 13 '20 15:05 AlexCroydon

replace those line with double "[[ ]]" in the services.sh file like this if [[ $1 = "daemon" ]]; then

justdick avatar Jun 10 '20 14:06 justdick

Hi thank you for help, but it doesn't help, another issue coming up

services.sh: 3: services.sh: [[: not found services.sh: 31: [: =: unexpected operator services.sh: 63: [: =: unexpected operator services.sh: 68: [: =: unexpected operator

AlexCroydon avatar Jun 11 '20 22:06 AlexCroydon

Hello,

Replace [ $1 = "daemon" ] to [ "$1" = "daemon" ];

dmazlum avatar Feb 01 '21 20:02 dmazlum