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

Make script POSIX compliant #8

Open
delvh opened this issue Jun 30, 2021 · 0 comments
Open

Make script POSIX compliant #8

delvh opened this issue Jun 30, 2021 · 0 comments

Comments

@delvh
Copy link

delvh commented Jun 30, 2021

Currently, this script can only be executed on bash and not on other shells.
For example, when I on Ubuntu 20.04 call

sudo sh energized.sh

everything looks horrible (i.e. the -e of echo will be printed for each command), and the program cannot be used at all (when I try to select any of the packs, it always returns instead of accepting, even for valid inputs), sometimes the shell even complains that it does not know what [[ should be.
This is because Ubuntu does not have bash as default anymore (/usr/bin/sh is a symbolic link to dash).
It would be much more user friendly if this script would not only work on bash, but on any shell instead.
This can be achieved by making it POSIX compliant.

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