Closed n0tnull closed 7 years ago
Thanks a lot, great idea! Let me just improve a minor thing: If there's no Bash, $BASH_VERSION
will not be set. So I just changed that to ${BASH_VERSION:-(unknown)}
for a clean error message. Though due to the #!/usr/bin/env bash
it should never come to that :smile_cat:
That's right, I forgot to handle this error case, it's better now 👍 Can you update the wiki with the new exit code too ?
EDIT: There's no way for me to do a PR on the Wiki, so you can find the updated version here : https://github.com/n0tnull/Adebar/wiki/_compare/d69a3b4e120c2d24c7ce7d3aae4cf5207abd70fe
Done, thanks! Yes, I also encountered that unfortunate restriction. But the only alternative doesn't work out either (having the Wiki publically editable). Which is why e.g. #7 is still open (and will remain open), so people can add device configurations there and I transfer it to the wiki.
It will be more obvious for someone to know if their bash version is not capable of running this script.