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

plot-mover.sh - Array removal is not working #3

Open
johnbiggs opened this issue Dec 1, 2023 · 0 comments
Open

plot-mover.sh - Array removal is not working #3

johnbiggs opened this issue Dec 1, 2023 · 0 comments

Comments

@johnbiggs
Copy link

The array code to remove full drives does not work properly. If you have drives 1-20 and drive 1 is full, the current replacement routine will substitute all drive-1 matches with ''. The remainder stays in the array. For example 'drive-11' becomes '1'. This then causes errors that day '1' is not mounted.

Comment out these lines.
farming_drives=("${farming_drives[@]/$drive}") echo "Drive $drive is full. Removing it from the list of available drives."

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

1 participant