aboutsummaryrefslogtreecommitdiff
path: root/libbutl/utility.bash.in
blob: e284c55179c81387524bc992b378e8ccea04d8a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# file      : libbutl/utility.bash.in
# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

if [ "$butl_utility" ]; then
  return 0
else
  butl_utility=true
fi

if (( BASH_VERSINFO[0] < 4 || BASH_VERSINFO[0] == 4 && BASH_VERSINFO[1] < 3 )); then
  echo 'error: bash 4.3 or later is required' 2>&1
  exit 1
fi