aboutsummaryrefslogtreecommitdiff
path: root/libbutl/utility.bash.in
blob: bcc0f1b4d5dd9651fd43c2faafebf0d386197a1f (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" = true ]; 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