diff --git a/assets/icon/update.sh b/assets/icon/update.sh index c166b3c91..78a26e774 100755 --- a/assets/icon/update.sh +++ b/assets/icon/update.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script updates the icon files from the svg file. # It assumes that the svg file is square. set -x diff --git a/ci/add-color-screen-shots.sh b/ci/add-color-screen-shots.sh index 7edd9157d..f7cab9c57 100755 --- a/ci/add-color-screen-shots.sh +++ b/ci/add-color-screen-shots.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Use eg: `xwininfo -int` to get the id of a wezterm # and pass it to this script diff --git a/ci/appimage.sh b/ci/appimage.sh index f1cf227e0..a3a5d026a 100755 --- a/ci/appimage.sh +++ b/ci/appimage.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x rm -rf AppDir *.AppImage *.zsync set -e diff --git a/ci/build-docs.sh b/ci/build-docs.sh index 0104ad0d8..704168f9e 100755 --- a/ci/build-docs.sh +++ b/ci/build-docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SERVE=no if [ "$1" == "serve" ] ; then diff --git a/ci/copr-build.sh b/ci/copr-build.sh index 701112c9f..003d385c1 100755 --- a/ci/copr-build.sh +++ b/ci/copr-build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x set -e diff --git a/ci/create-release.sh b/ci/create-release.sh index afa911f4c..5760ea627 100755 --- a/ci/create-release.sh +++ b/ci/create-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x name="$1" diff --git a/ci/deploy.sh b/ci/deploy.sh index f52195786..e5528572c 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x set -e diff --git a/ci/make-color-screen-shots.sh b/ci/make-color-screen-shots.sh index 834faa613..594279554 100755 --- a/ci/make-color-screen-shots.sh +++ b/ci/make-color-screen-shots.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Use eg: `xwininfo -int` to get the id of a wezterm # and pass it to this script diff --git a/ci/make-winget-pr.sh b/ci/make-winget-pr.sh index 4c3ce6640..855ff6ecd 100755 --- a/ci/make-winget-pr.sh +++ b/ci/make-winget-pr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -xe winget_repo=$1 diff --git a/ci/retry.sh b/ci/retry.sh index afec3ea2e..edc2a4105 100755 --- a/ci/retry.sh +++ b/ci/retry.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x set -e diff --git a/ci/source-archive.sh b/ci/source-archive.sh index a784dcaa5..6ae674e05 100755 --- a/ci/source-archive.sh +++ b/ci/source-archive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Generate a source tarball that includes git submodules set -x diff --git a/ci/tag-name.sh b/ci/tag-name.sh index 5dd615e27..a755f8886 100755 --- a/ci/tag-name.sh +++ b/ci/tag-name.sh @@ -1,2 +1,2 @@ -#!/bin/bash +#!/usr/bin/env bash git -c "core.abbrev=8" show -s "--format=%cd-%h" "--date=format:%Y%m%d-%H%M%S" diff --git a/ci/tag.sh b/ci/tag.sh index 1b166e649..914ffcfba 100755 --- a/ci/tag.sh +++ b/ci/tag.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TAGNAME=$(./ci/tag-name.sh) git tag $TAGNAME diff --git a/ci/update-cargo-deps-with-cooldown.sh b/ci/update-cargo-deps-with-cooldown.sh index fd31e4aae..db17674a4 100755 --- a/ci/update-cargo-deps-with-cooldown.sh +++ b/ci/update-cargo-deps-with-cooldown.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # You need: https://crates.io/crates/cargo-cooldown # This script is logically equivalent to running `cargo update` # but respects dependency cooldown settings found in the cooldown.toml diff --git a/ci/update-derived-files.sh b/ci/update-derived-files.sh index ced4f4441..c2846945f 100755 --- a/ci/update-derived-files.sh +++ b/ci/update-derived-files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Update files that are derived from things baked into the executable diff --git a/deps/cairo/import-cairo.sh b/deps/cairo/import-cairo.sh index e2d027660..e54705e51 100755 --- a/deps/cairo/import-cairo.sh +++ b/deps/cairo/import-cairo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Sync the vendored sources from a pixman URL # eg: # wget 'https://cairographics.org/snapshots/cairo-1.17.8.tar.xz' diff --git a/deps/cairo/import-pixman.sh b/deps/cairo/import-pixman.sh index b1d283872..013f5e197 100755 --- a/deps/cairo/import-pixman.sh +++ b/deps/cairo/import-pixman.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Sync the vendored sources from a pixman URL # eg: # wget 'https://cairographics.org/releases/pixman-0.42.2.tar.gz' diff --git a/deps/freetype/regenerate.sh b/deps/freetype/regenerate.sh index c6106ad8f..f7cf8e402 100755 --- a/deps/freetype/regenerate.sh +++ b/deps/freetype/regenerate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash bindgen bindings.h -o src/types.rs \ --no-layout-tests \ diff --git a/deps/harfbuzz/regenerate.sh b/deps/harfbuzz/regenerate.sh index e466259ba..66359a495 100755 --- a/deps/harfbuzz/regenerate.sh +++ b/deps/harfbuzz/regenerate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash bindgen bindings.h -o src/lib.rs \ --no-layout-tests \ diff --git a/test-data/colortest.sh b/test-data/colortest.sh index f5b68f75f..b2961b1f8 100755 --- a/test-data/colortest.sh +++ b/test-data/colortest.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html