Skip to content

Remove bashisms #8

@dertuxmalwieder

Description

@dertuxmalwieder

In order to be more compatible with several operating systems (not all UNIX-like systems have a bash installed), it might be a good idea to get rid of the bashisms and set the shebang to /bin/sh instead. As far as I can see, there is no functionality that would need to be removed:

  • echo -e does not seem to be necessary where it occurs -> remove the -e
  • read -p would need to be rewritten as printf "some text" ; read -r
  • $(...) - inconsequently used in this script anyway - should be replaced with backticks
  • the [[ var == text ]] syntax only needs minor changes

The benefit from this would be that nobody would need to use a bash with all of its dependencies -> even lower entry point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions