From acf7de7a52c16dd994305ce289e60e4894ff04d0 Mon Sep 17 00:00:00 2001 From: Kuba Tyszko Date: Tue, 6 Jul 2021 07:56:13 -0700 Subject: [PATCH] /bin/bash to /usr/bin/env bash (#13422) --- util/chibios_conf_updater.sh | 2 +- util/generate_internal_docs.sh | 2 +- util/install/arch.sh | 2 +- util/install/debian.sh | 2 +- util/install/fedora.sh | 2 +- util/install/freebsd.sh | 2 +- util/install/gentoo.sh | 2 +- util/install/linux_shared.sh | 2 +- util/install/macos.sh | 2 +- util/install/msys2.sh | 2 +- util/install/slackware.sh | 2 +- util/install/solus.sh | 2 +- util/install/void.sh | 2 +- util/new_keyboard.sh | 2 +- util/qmk_install.sh | 2 +- util/rules_cleaner.sh | 2 +- util/travis_build.sh | 2 +- util/travis_compiled_push.sh | 2 +- util/travis_test.sh | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/util/chibios_conf_updater.sh b/util/chibios_conf_updater.sh index 70bd80da1ea..5ba8aa677b6 100755 --- a/util/chibios_conf_updater.sh +++ b/util/chibios_conf_updater.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eEuo pipefail umask 022 diff --git a/util/generate_internal_docs.sh b/util/generate_internal_docs.sh index bfee797d3ab..b107a37ad6b 100755 --- a/util/generate_internal_docs.sh +++ b/util/generate_internal_docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x diff --git a/util/install/arch.sh b/util/install/arch.sh index eac4ad64eff..bef98ac37f6 100755 --- a/util/install/arch.sh +++ b/util/install/arch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _qmk_install() { echo "Installing dependencies" diff --git a/util/install/debian.sh b/util/install/debian.sh index 9e129969767..57588e371ab 100755 --- a/util/install/debian.sh +++ b/util/install/debian.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true diff --git a/util/install/fedora.sh b/util/install/fedora.sh index 3f9695356ca..e123447d3f8 100755 --- a/util/install/fedora.sh +++ b/util/install/fedora.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _qmk_install() { echo "Installing dependencies" diff --git a/util/install/freebsd.sh b/util/install/freebsd.sh index d9399a5de95..595911969d3 100755 --- a/util/install/freebsd.sh +++ b/util/install/freebsd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _qmk_install_prepare() { sudo pkg update $SKIP_PROMPT diff --git a/util/install/gentoo.sh b/util/install/gentoo.sh index 604d07bf84f..b031fc7629e 100755 --- a/util/install/gentoo.sh +++ b/util/install/gentoo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _qmk_install_prepare() { echo "This script will make a USE change in order to ensure that that QMK works on your system." diff --git a/util/install/linux_shared.sh b/util/install/linux_shared.sh index cb81e8611f7..e060f425f57 100755 --- a/util/install/linux_shared.sh +++ b/util/install/linux_shared.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # For those distros that do not package bootloadHID _qmk_install_bootloadhid() { diff --git a/util/install/macos.sh b/util/install/macos.sh index 4b87217ba00..3ce8ddbfd3e 100755 --- a/util/install/macos.sh +++ b/util/install/macos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _qmk_install_prepare() { echo "Checking Homebrew installation" diff --git a/util/install/msys2.sh b/util/install/msys2.sh index b027ff53d21..203f8eff0cb 100755 --- a/util/install/msys2.sh +++ b/util/install/msys2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _qmk_install_prepare() { pacman -Syu $MSYS2_CONFIRM diff --git a/util/install/slackware.sh b/util/install/slackware.sh index d73303159d5..df4d073e7ba 100755 --- a/util/install/slackware.sh +++ b/util/install/slackware.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _qmk_install_prepare() { echo "Before you continue, please ensure that your user is added to sudoers and that sboinstall is configured." diff --git a/util/install/solus.sh b/util/install/solus.sh index 5633f7039cc..fad0605cf61 100755 --- a/util/install/solus.sh +++ b/util/install/solus.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _qmk_install_prepare() { sudo eopkg -y update-repo diff --git a/util/install/void.sh b/util/install/void.sh index c49c3ef63f2..6aeb8e00aed 100755 --- a/util/install/void.sh +++ b/util/install/void.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _qmk_install() { echo "Installing dependencies" diff --git a/util/new_keyboard.sh b/util/new_keyboard.sh index cf3339f9a75..d0db23bb429 100755 --- a/util/new_keyboard.sh +++ b/util/new_keyboard.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script generates a new keyboard directory under keyboards/, # and copies the template files from quantum/template/ into it. diff --git a/util/qmk_install.sh b/util/qmk_install.sh index 943069453a2..06eb4f02284 100755 --- a/util/qmk_install.sh +++ b/util/qmk_install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash QMK_FIRMWARE_DIR=$(cd -P -- "$(dirname -- "$0")/.." && pwd -P) QMK_FIRMWARE_UTIL_DIR=$QMK_FIRMWARE_DIR/util diff --git a/util/rules_cleaner.sh b/util/rules_cleaner.sh index ac27c2b09ba..0367ae849f0 100755 --- a/util/rules_cleaner.sh +++ b/util/rules_cleaner.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script finds all rules.mk files in keyboards/ subdirectories, # and deletes the build option filesize impacts from them. diff --git a/util/travis_build.sh b/util/travis_build.sh index e7bbe36a7bb..a96cfcb5752 100755 --- a/util/travis_build.sh +++ b/util/travis_build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source util/travis_utils.sh diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh index 6300442fdbb..73a9e3bc484 100755 --- a/util/travis_compiled_push.sh +++ b/util/travis_compiled_push.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source util/travis_utils.sh source util/travis_push.sh diff --git a/util/travis_test.sh b/util/travis_test.sh index be0cfce001e..9156147ca60 100644 --- a/util/travis_test.sh +++ b/util/travis_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source util/travis_utils.sh