[GH-ISSUE #127] /bin/bc: line 1: syntax error near unexpected token `newline' #30

Closed
opened 2026-03-07 19:12:13 +03:00 by kerem · 2 comments
Owner

Originally created by @artemus717 on GitHub (Oct 26, 2023).
Original GitHub issue: https://github.com/007revad/Synology_enable_M2_volume/issues/127

图片

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.

Originally created by @artemus717 on GitHub (Oct 26, 2023). Original GitHub issue: https://github.com/007revad/Synology_enable_M2_volume/issues/127 <img width="590" alt="图片" src="https://github.com/007revad/Synology_enable_M2_volume/assets/16465173/ffe75f87-95d7-4d37-9b6b-347c095ba350"> 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.
kerem closed this issue 2026-03-07 19:12:13 +03:00
Author
Owner

@artemus717 commented on GitHub (Oct 26, 2023):

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

<!-- gh-comment-id:1781393399 --> @artemus717 commented on GitHub (Oct 26, 2023): I replace bc again and check the privilege of bc. This time it works.
Author
Owner

@007revad commented on GitHub (Oct 26, 2023):

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.

<!-- gh-comment-id:1781747048 --> @007revad commented on GitHub (Oct 26, 2023): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_enable_M2_volume#30
No description provided.