dshoreman / nextshot

A simple tool for taking screenshots on Linux and sharing via Nextcloud
GNU General Public License v2.0
42 stars 3 forks source link

Require Bash 4+ #23

Closed dshoreman closed 5 years ago

dshoreman commented 5 years ago

NextShot uses some expansions and other syntax (such as ${rename,,} to lowercase the boolean rename option) that is only available as of Bash v4.

You'd think most systems would be on Bash 4 already, but it might not always be the case. For instance OSX - while not (yet) supported by NextShot - is still running v3 out of the box.

If we detect a system running Bash < 4, NextShot should exit with an error message stating that fact.