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 70bd80da1..5ba8aa677 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 bfee797d3..b107a37ad 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 eac4ad64e..bef98ac37 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 9e1299697..57588e371 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 3f9695356..e123447d3 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 d9399a5de..595911969 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 604d07bf8..b031fc762 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 cb81e8611..e060f425f 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 4b87217ba..3ce8ddbfd 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 b027ff53d..203f8eff0 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 d73303159..df4d073e7 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 5633f7039..fad0605cf 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 c49c3ef63..6aeb8e00a 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 cf3339f9a..d0db23bb4 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 943069453..06eb4f022 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 ac27c2b09..0367ae849 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 e7bbe36a7..a96cfcb57 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 6300442fd..73a9e3bc4 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 be0cfce00..9156147ca 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