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

Unable to Set Path Variable - restart.sh #37

Closed
jmsuan opened this issue May 8, 2022 · 3 comments
Closed

Unable to Set Path Variable - restart.sh #37

jmsuan opened this issue May 8, 2022 · 3 comments
Assignees

Comments

@jmsuan
Copy link

jmsuan commented May 8, 2022

image
Error is thrown every time restart.sh is run. Every fresh installation I've had has had this error so far, I've made sure my Pi is up to date every time too.

100% Reproducible on Pi 4 (8gb) when using Raspberry Pi OS Lite (64bit), booting from USB drive. (I believe it happened too with booting from SD card.) I can provide additional details if requested, thanks. I only access the system through SSH but I doubt that would be related.

@TheRemote
Copy link
Owner

Well that is certainly unexpected. It usually means you don't have bash installed. I've never seen or heard of that on Raspberry Pi OS. Maybe they are changing away from bash like so many other flavors have already done?

Actually I see a different problem in here. It's only in restart.sh and at the top of the file it has:

#!/bin/sh

instead of:

#!/bin/bash

It probably actually is running it with the POSIX shell that doesn't support a double [[. I'm going to upload a fix for this. Can you run SetupMinecraft.sh again and make sure this isn't happening? Thank you for reporting this!

@jmsuan
Copy link
Author

jmsuan commented May 8, 2022

Looks like that fixed this issue.

Thank you for your generous contributions including this project. It's been a life saver!

@jmsuan jmsuan closed this as completed May 8, 2022
@TheRemote
Copy link
Owner

Thank you very much again for reporting it, I'm glad that took care of it!

I never cease to be humbled by the projects. You'd think that since I still regularly run and play on the server that I would have seen all of these but the truth is the developers often if not usually don't see it in their development environment.

This is why I'm a big believer in open source. I'm glad to be participating in the community and glad you are here as well. Take care!

@TheRemote TheRemote self-assigned this May 11, 2022
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