mriza / winbox-installer

Install winbox in fedora/ubuntu linux, using wine
MIT License
194 stars 73 forks source link

Specified shell does not support all syntax features used in the script #13

Closed phrxmd closed 5 years ago

phrxmd commented 5 years ago

The winbox-install script specifies #! /bin/sh in the first line, but then uses syntax features such as [[ that are not supported by plain sh and are present only in more complex shells. On systems where there is a real /bin/sh, and /bin/sh is not just a symlink to /bin/bash or some other shell, the script therefore fails with a syntax error.

mriza commented 5 years ago

previously, I was rejected the idea of using only BASH. But the discussion around this topic convince me. Thanks