]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Change all fixed-path bash shebangs to /u/b/env bash outside test/
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Sun, 12 Dec 2021 19:27:04 +0000 (20:27 +0100)
committerнаб <nabijaczleweli@nabijaczleweli.xyz>
Sun, 12 Dec 2021 20:13:50 +0000 (21:13 +0100)
.github/workflows/build_test.sh
.github/workflows/run_mkosi.sh
.github/workflows/unit_tests.sh
.semaphore/semaphore-runner.sh
coccinelle/run-coccinelle.sh
man/50-xdg-data-dirs.sh
src/basic/check-filesystems.sh
src/rpm/systemd-update-helper.in
tools/check-api-docs.sh
tools/check-help.sh
tools/get-coverity.sh

index 96f532ab22ef0e471cb479f2178092ed5d94c1f7..5dc54771baecc6e9397d97fbbed5598e27c9feec 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 set -ex
index 5d4798b5b7a14661694d2b5a5845257a1e89d42a..e8803239aa6223a2d3b7d4dfefda0ce4214b313e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
 # shellcheck disable=SC2064
 
index ec7e92a49a7c77b4fee5f043e5a6095ecae6f516..9c7beb6d19e9468fe10fed576a6ee8e5e60c3cda 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 # shellcheck disable=SC2206
index 381504fd3b999e7b4ca55b6b98fce3077f9c9b69..d02b449e0eb91e8ecf0209193c921a3a23afcd96 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 set -eux
index becb38bf9132e6cd92c55dfcdf67f7c9e8271324..3249722863dcb16c199e780830b69f751d651544 100755 (executable)
@@ -1,5 +1,6 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
+set -e
 
 # Exclude following paths from the Coccinelle transformations
 EXCLUDED_PATHS=(
index 02216abf6c69aad0c48b8e84f50578655637b1db..5f042c5511abfb91b9fe2dab687d1dd2e7b08b25 100755 (executable)
@@ -1,11 +1,11 @@
-#!/bin/bash
+#!/bin/sh
 # SPDX-License-Identifier: CC0-1.0
 
 # set the default value
 XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share}"
 
 # add a directory if it exists
-if [[ -d /opt/foo/share ]]; then
+if [ -d /opt/foo/share ]; then
     XDG_DATA_DIRS="/opt/foo/share:${XDG_DATA_DIRS}"
 fi
 
index 026574652e2a4507f9da496a9a465b69ff44c6af..696ef610acc98d5fdb5a38f6654af26bada02cff 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
 set -eu
 set -o pipefail
index 7e007d480650d9f6b53793b19aa6b9d40e041dd6..ab8cdc0ff96db92e08ddc6bc3d9617e69d305405 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
 set -eu
 set -o pipefail
index 0bf053b5ffbf7155836800a93d6bb19533270aa0..2e973a088beac0aa435ddb1ff20485ef7bdc7890 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
 set -eu
 set -o pipefail
index 8e7d236dd9014873319f8a2c7251ff118005e80b..76ac2926750f9e00c01ecdfcd85e7d064a044ea0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
 set -eu
 set -o pipefail
index 00219bf60fed15335e3b7a0215f4e3ab21b063ce..b067ed23eba41ad0314c8818c910792ed6d7d16b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 # Download and extract coverity tool