diff options
50 files changed, 51 insertions, 51 deletions
diff --git a/ci/gh_actions.py b/ci/gh_actions.py index bbeb3b34..b99096f5 100755 --- a/ci/gh_actions.py +++ b/ci/gh_actions.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-3.0-or-later import json import time diff --git a/ci/respdiff/run-respdiff-tests.sh b/ci/respdiff/run-respdiff-tests.sh index 2bfc44d9..6f065038 100755 --- a/ci/respdiff/run-respdiff-tests.sh +++ b/ci/respdiff/run-respdiff-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # $1 == udp/tcp/tls, it selects configuration file to use diff --git a/daemon/lua/kres-gen.sh b/daemon/lua/kres-gen.sh index d335c0ec..d14c0286 100755 --- a/daemon/lua/kres-gen.sh +++ b/daemon/lua/kres-gen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # Run with "ninja kres-gen" to re-generate $1 diff --git a/modules/ta_update/ta_update.test.integr/rfc5011/dns2rpl.py b/modules/ta_update/ta_update.test.integr/rfc5011/dns2rpl.py index 317d6719..6002e830 100755 --- a/modules/ta_update/ta_update.test.integr/rfc5011/dns2rpl.py +++ b/modules/ta_update/ta_update.test.integr/rfc5011/dns2rpl.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Generate RFC 5011 test simulating successful KSK roll-over in 2017. diff --git a/modules/ta_update/ta_update.test.integr/rfc5011/genkeyszones.sh b/modules/ta_update/ta_update.test.integr/rfc5011/genkeyszones.sh index 4a654695..5ff1d8f1 100755 --- a/modules/ta_update/ta_update.test.integr/rfc5011/genkeyszones.sh +++ b/modules/ta_update/ta_update.test.integr/rfc5011/genkeyszones.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash # First, generate DNSSEC keys with timers set to simulate 2017 KSK roll-over. # Second, fake system time to pretend that we are at the beginning on time slots @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash script_dir="$(dirname "$(readlink -f "$0")")" diff --git a/scripts/bench.sh b/scripts/bench.sh index 232c5231..d5a9f38e 100755 --- a/scripts/bench.sh +++ b/scripts/bench.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later set -o errexit -o nounset diff --git a/scripts/bugreport-journals.py b/scripts/bugreport-journals.py index d66ddfba..bb4d9f24 100755 --- a/scripts/bugreport-journals.py +++ b/scripts/bugreport-journals.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Collect systemd-journal log entries around time of daemon exit and coredumps. """ diff --git a/scripts/build-in-obs.sh b/scripts/build-in-obs.sh index 3256ddee..176b9ad4 100755 --- a/scripts/build-in-obs.sh +++ b/scripts/build-in-obs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # # Push packaging files to OBS diff --git a/scripts/coverage_c_combine.sh b/scripts/coverage_c_combine.sh index a891ded5..46181119 100755 --- a/scripts/coverage_c_combine.sh +++ b/scripts/coverage_c_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # $1 = top source directory diff --git a/scripts/coverage_env.sh b/scripts/coverage_env.sh index 0f6810f7..4f55d857 100755 --- a/scripts/coverage_env.sh +++ b/scripts/coverage_env.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # generate variables for coverage testing diff --git a/scripts/create_setup.py b/scripts/create_setup.py index 087ce3b0..2240cea8 100755 --- a/scripts/create_setup.py +++ b/scripts/create_setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Original source: diff --git a/scripts/enable-repo-cznic-labs.sh b/scripts/enable-repo-cznic-labs.sh index cbc64c68..e7c53a82 100755 --- a/scripts/enable-repo-cznic-labs.sh +++ b/scripts/enable-repo-cznic-labs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # enable CZ.NIC Labs Debian/Ubuntu repos - see https://pkg.labs.nic.cz/doc/ set -e diff --git a/scripts/gen-cdefs.sh b/scripts/gen-cdefs.sh index d56ab86d..968f40b9 100755 --- a/scripts/gen-cdefs.sh +++ b/scripts/gen-cdefs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later set -o pipefail -o errexit diff --git a/scripts/gen-pgp-keyblock.sh b/scripts/gen-pgp-keyblock.sh index 29855312..bfdb2349 100755 --- a/scripts/gen-pgp-keyblock.sh +++ b/scripts/gen-pgp-keyblock.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script to create/update Knot Resolver PGP keyring set -o errexit -o nounset diff --git a/scripts/get-date.sh b/scripts/get-date.sh index 36531558..fed10048 100755 --- a/scripts/get-date.sh +++ b/scripts/get-date.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later set -o nounset cd "$(dirname $0)/.." diff --git a/scripts/luacov_gen_empty.sh b/scripts/luacov_gen_empty.sh index 127734df..a953d914 100755 --- a/scripts/luacov_gen_empty.sh +++ b/scripts/luacov_gen_empty.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # Generate stats file in luacov format indicating that files named on stdin # were not processed. diff --git a/scripts/make-archive.sh b/scripts/make-archive.sh index 9f2be0ea..b4cd3367 100755 --- a/scripts/make-archive.sh +++ b/scripts/make-archive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # Create a development tarball set -o errexit -o nounset -o xtrace diff --git a/scripts/make-doc.sh b/scripts/make-doc.sh index 1723ada7..503d7943 100755 --- a/scripts/make-doc.sh +++ b/scripts/make-doc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later set -o errexit -o nounset cd "$(dirname "${0}")/.." diff --git a/scripts/make-obs.sh b/scripts/make-obs.sh index abe96701..cc0aab73 100755 --- a/scripts/make-obs.sh +++ b/scripts/make-obs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # # create OpenSUSE Build System (OBS) source package diff --git a/scripts/make-package.sh b/scripts/make-package.sh index 85549e65..8b0ba95c 100755 --- a/scripts/make-package.sh +++ b/scripts/make-package.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit set -o nounset diff --git a/scripts/poe-tasks/check b/scripts/poe-tasks/check index 08ce18a8..5563a9de 100755 --- a/scripts/poe-tasks/check +++ b/scripts/poe-tasks/check @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" diff --git a/scripts/poe-tasks/configure b/scripts/poe-tasks/configure index 452b1a3b..1ca961a7 100755 --- a/scripts/poe-tasks/configure +++ b/scripts/poe-tasks/configure @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" diff --git a/scripts/poe-tasks/docs b/scripts/poe-tasks/docs index d15c074e..6a62eb78 100755 --- a/scripts/poe-tasks/docs +++ b/scripts/poe-tasks/docs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" diff --git a/scripts/poe-tasks/examples b/scripts/poe-tasks/examples index 45f22436..c214167a 100755 --- a/scripts/poe-tasks/examples +++ b/scripts/poe-tasks/examples @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" diff --git a/scripts/poe-tasks/format b/scripts/poe-tasks/format index fa113f19..0a83e3c2 100755 --- a/scripts/poe-tasks/format +++ b/scripts/poe-tasks/format @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" diff --git a/scripts/poe-tasks/gen-setuppy b/scripts/poe-tasks/gen-setuppy index 752beea1..3f337b39 100755 --- a/scripts/poe-tasks/gen-setuppy +++ b/scripts/poe-tasks/gen-setuppy @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" diff --git a/scripts/poe-tasks/kresctl b/scripts/poe-tasks/kresctl index 4b4880b7..e46ad3c1 100755 --- a/scripts/poe-tasks/kresctl +++ b/scripts/poe-tasks/kresctl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" diff --git a/scripts/poe-tasks/man b/scripts/poe-tasks/man index ba28e414..9b06b360 100755 --- a/scripts/poe-tasks/man +++ b/scripts/poe-tasks/man @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" @@ -6,4 +6,4 @@ source $src_dir/_env.sh build_kresd -man -l .install_kresd/share/man/man8/$1*
\ No newline at end of file +man -l .install_kresd/share/man/man8/$1* diff --git a/scripts/poe-tasks/run b/scripts/poe-tasks/run index c1bdf78b..f217988d 100755 --- a/scripts/poe-tasks/run +++ b/scripts/poe-tasks/run @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" diff --git a/scripts/poe-tasks/run-debug b/scripts/poe-tasks/run-debug index b48f2359..661b7fe2 100755 --- a/scripts/poe-tasks/run-debug +++ b/scripts/poe-tasks/run-debug @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" @@ -10,4 +10,4 @@ echo The manager will start after you connect echo API will be running on port 5000 echo ---------------------------------------- -KRES_DEBUG_MANAGER=1 poe run $@
\ No newline at end of file +KRES_DEBUG_MANAGER=1 poe run $@ diff --git a/scripts/poe-tasks/test b/scripts/poe-tasks/test index 0f451b68..3c1d7a9c 100755 --- a/scripts/poe-tasks/test +++ b/scripts/poe-tasks/test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ensure consistent behaviour src_dir="$(dirname "$(realpath "$0")")" diff --git a/scripts/run-pylint.sh b/scripts/run-pylint.sh index 92413826..653d54bd 100755 --- a/scripts/run-pylint.sh +++ b/scripts/run-pylint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later set -o errexit -o nounset diff --git a/scripts/run-scanbuild-with-args.sh b/scripts/run-scanbuild-with-args.sh index b2954536..fa4a98cd 100755 --- a/scripts/run-scanbuild-with-args.sh +++ b/scripts/run-scanbuild-with-args.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later set -o errexit -o nounset diff --git a/scripts/test-config.sh b/scripts/test-config.sh index 695e5182..2b55066d 100755 --- a/scripts/test-config.sh +++ b/scripts/test-config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # Utility script used by meson to run config tests post installation set -o nounset -o errexit diff --git a/scripts/test-integration-prepare.sh b/scripts/test-integration-prepare.sh index 13db1438..17f08df3 100755 --- a/scripts/test-integration-prepare.sh +++ b/scripts/test-integration-prepare.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later set -o errexit -o nounset diff --git a/scripts/update-authors.sh b/scripts/update-authors.sh index 8ccb77ed..4e2f6806 100755 --- a/scripts/update-authors.sh +++ b/scripts/update-authors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # avoid confusing changes in ordering diff --git a/scripts/update-root-hints.sh b/scripts/update-root-hints.sh index 5f7a564b..862d834b 100755 --- a/scripts/update-root-hints.sh +++ b/scripts/update-root-hints.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later set -o nounset -o xtrace diff --git a/scripts/upstream-version.sh b/scripts/upstream-version.sh index 77613b70..4efa42db 100755 --- a/scripts/upstream-version.sh +++ b/scripts/upstream-version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-3.0-or-later # # return latest upstream version of Knot Resolver diff --git a/tests/dnstap/src/dnstap-test/run.sh b/tests/dnstap/src/dnstap-test/run.sh index 70d82254..f1ed9fb2 100755 --- a/tests/dnstap/src/dnstap-test/run.sh +++ b/tests/dnstap/src/dnstap-test/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e KRESD_CMD=$1 MESON_BUILD_ROOT=$(pwd) diff --git a/tests/integration/deckard b/tests/integration/deckard -Subproject b5b338678d48a9807097000afe03ebfdf705f7a +Subproject 0e100ff13d4df3208d63b74ab4812b7e2a0c17b diff --git a/tests/packaging/dependencies.py b/tests/packaging/dependencies.py index 324ff30b..1262d2e1 100755 --- a/tests/packaging/dependencies.py +++ b/tests/packaging/dependencies.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import importlib import importlib.util diff --git a/tests/packaging/interactive/cache-clear.sh b/tests/packaging/interactive/cache-clear.sh index 377cf5d3..79d88a12 100755 --- a/tests/packaging/interactive/cache-clear.sh +++ b/tests/packaging/interactive/cache-clear.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # clear full cache kresctl cache clear diff --git a/tests/packaging/interactive/etag.sh b/tests/packaging/interactive/etag.sh index f14ef96a..3a9de46c 100755 --- a/tests/packaging/interactive/etag.sh +++ b/tests/packaging/interactive/etag.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/tests/packaging/interactive/metrics.sh b/tests/packaging/interactive/metrics.sh index 1ad48930..63ac035d 100755 --- a/tests/packaging/interactive/metrics.sh +++ b/tests/packaging/interactive/metrics.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/tests/packaging/interactive/reload.sh b/tests/packaging/interactive/reload.sh index 9daa1890..85bca315 100755 --- a/tests/packaging/interactive/reload.sh +++ b/tests/packaging/interactive/reload.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/tests/packaging/interactive/workers.sh b/tests/packaging/interactive/workers.sh index 4f54f6ae..b23afcdb 100755 --- a/tests/packaging/interactive/workers.sh +++ b/tests/packaging/interactive/workers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash expected_workers="5" diff --git a/tests/packaging/knot-resolver.sh b/tests/packaging/knot-resolver.sh index 6aa38bde..2c252f7e 100755 --- a/tests/packaging/knot-resolver.sh +++ b/tests/packaging/knot-resolver.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # fail fast set -e diff --git a/tests/packaging/kresctl.sh b/tests/packaging/kresctl.sh index 579f1a10..aff02b6b 100755 --- a/tests/packaging/kresctl.sh +++ b/tests/packaging/kresctl.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # fail fast set -e diff --git a/tests/packaging/systemd_service.sh b/tests/packaging/systemd_service.sh index c6ac826b..9dec16ab 100755 --- a/tests/packaging/systemd_service.sh +++ b/tests/packaging/systemd_service.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # fail fast set -e |