diff options
Diffstat (limited to 'contrib/bc/scripts/lint.sh')
-rwxr-xr-x | contrib/bc/scripts/lint.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/bc/scripts/lint.sh b/contrib/bc/scripts/lint.sh index 65f81c5f6511..5a217204f8f5 100755 --- a/contrib/bc/scripts/lint.sh +++ b/contrib/bc/scripts/lint.sh @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: BSD-2-Clause # -# Copyright (c) 2018-2021 Gavin D. Howard and contributors. +# Copyright (c) 2018-2023 Gavin D. Howard and contributors. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -27,7 +27,10 @@ # POSSIBILITY OF SUCH DAMAGE. # -scriptdir=$(dirname "$0") +script="$0" +scriptdir=$(dirname "$script") + +. "$scriptdir/functions.sh" cd "$scriptdir/.." |