Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error with TrueNAS 13.0U6 #36

Closed
CvW opened this issue Apr 7, 2024 · 1 comment
Closed

Syntax Error with TrueNAS 13.0U6 #36

CvW opened this issue Apr 7, 2024 · 1 comment

Comments

@CvW
Copy link

CvW commented Apr 7, 2024

If I try to execute this script in a standard GUI root shell, it fails with the following erorr:

/root/zfs-inplace-rebalancing.sh: 28: Syntax error: "(" unexpected

Is this expected? What can I do to mitigate the issue? Other .sh scripts here execute without issues. This version of TrueNAS runs on FreeBSD13.1 release p9.

@CvW CvW changed the title Issue with TrueNAS 13.0U6 Syntax Error with TrueNAS 13.0U6 Apr 7, 2024
@markusressel
Copy link
Owner

This script is expecting bash, the default shell on FreeBSD is zsh, which might not support the exact same syntax as bash. Probably even bash isn't identical on all platforms. Try running it using bash, otherwise the script will probably not work as is. Also see #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants