Skip to content

Commit

Permalink
Require bash 4.3+ to run
Browse files Browse the repository at this point in the history
  • Loading branch information
slowpeek committed Feb 17, 2024
1 parent 3997911 commit 46d5474
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apt-undo
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
# Homepage: https://github.com/slowpeek/apt-undo
# About: Undo install events from apt log

case "$BASH_VERSION" in
[2-3].*|4.[0-2]*)
echo "This script requires bash 4.3, yours is $BASH_VERSION"
exit 1 ;;
esac

set -eu -o pipefail

SCRIPT_VERSION=1.0b+git
Expand Down

0 comments on commit 46d5474

Please sign in to comment.