007revad / Synology_enable_M2_volume

Enable creating volumes with non-Synology M.2 drives
MIT License
501 stars 36 forks source link

/bin/bc: line 1: syntax error near unexpected token `newline' #127

Closed artemus717 closed 10 months ago

artemus717 commented 10 months ago
图片

I download the script from github. Sure did not edit or open any file on my PC.

Seemed like there are something wrong for bc file.

I tried to use bc in bin/bc to replace /bin/bc. But /bin/bc will come back to the little one.

artemus717 commented 10 months ago

I replace bc again and check the privilege of bc. This time it works.

007revad commented 10 months ago

I notice bc was in /bin My script installs bc in /usr/bin and then sets it as executable.

One of the Xpenology loaders installs bc in /bin and another Xpenology loader installs bc in /usr/bin which would explain why you have bc in /bin

I'll change my script to check if bc is in /bin and set it as executable if needed.