diff --git a/dev.sh b/dev.sh index 0a94eff8..584a6b32 100755 --- a/dev.sh +++ b/dev.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/overlays/common/01-store-version/scripts/01_store_version.sh b/overlays/common/01-store-version/scripts/01_store_version.sh index b4f63052..f8baa138 100755 --- a/overlays/common/01-store-version/scripts/01_store_version.sh +++ b/overlays/common/01-store-version/scripts/01_store_version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ -z "$CREATE_FIRMWARE" ]]; then echo "Error: This script should be run within the create_firmware.sh environment." diff --git a/overlays/common/01-store-version/scripts/02_update_boot_logo.sh b/overlays/common/01-store-version/scripts/02_update_boot_logo.sh index 104a79f3..07a67c63 100755 --- a/overlays/common/01-store-version/scripts/02_update_boot_logo.sh +++ b/overlays/common/01-store-version/scripts/02_update_boot_logo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/overlays/devel/21-entware/scripts/entware_installer.sh b/overlays/devel/21-entware/scripts/entware_installer.sh index 8821ebd7..7aa8d463 100755 --- a/overlays/devel/21-entware/scripts/entware_installer.sh +++ b/overlays/devel/21-entware/scripts/entware_installer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eo pipefail diff --git a/overlays/firmware-extended/01-system-utils/scripts/curl_install.sh b/overlays/firmware-extended/01-system-utils/scripts/curl_install.sh index 6500c83e..f7f28ffe 100755 --- a/overlays/firmware-extended/01-system-utils/scripts/curl_install.sh +++ b/overlays/firmware-extended/01-system-utils/scripts/curl_install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eo pipefail diff --git a/overlays/firmware-extended/01-system-utils/scripts/fix_timelapse_install.sh b/overlays/firmware-extended/01-system-utils/scripts/fix_timelapse_install.sh index 54576463..a93181e3 100755 --- a/overlays/firmware-extended/01-system-utils/scripts/fix_timelapse_install.sh +++ b/overlays/firmware-extended/01-system-utils/scripts/fix_timelapse_install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash GIT_URL=https://github.com/horzadome/snapmaker-u1-timelapse-recovery.git GIT_SHA=8e2a2e50e8642a4f368e4e4794585b2a2d2e2857 diff --git a/overlays/firmware-extended/01-system-utils/scripts/rsync_install.sh b/overlays/firmware-extended/01-system-utils/scripts/rsync_install.sh index ca6fc008..25487895 100755 --- a/overlays/firmware-extended/01-system-utils/scripts/rsync_install.sh +++ b/overlays/firmware-extended/01-system-utils/scripts/rsync_install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eo pipefail diff --git a/overlays/firmware-extended/02-kernel-modules/scripts/01_compile_kernel_modules.sh b/overlays/firmware-extended/02-kernel-modules/scripts/01_compile_kernel_modules.sh index 1ba8e3d0..d766288e 100755 --- a/overlays/firmware-extended/02-kernel-modules/scripts/01_compile_kernel_modules.sh +++ b/overlays/firmware-extended/02-kernel-modules/scripts/01_compile_kernel_modules.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ -z "$CREATE_FIRMWARE" ]]; then echo "Error: This script should be run within the create_firmware.sh environment." diff --git a/overlays/firmware-extended/10-firmware-config/scripts/01-install-yaml.sh b/overlays/firmware-extended/10-firmware-config/scripts/01-install-yaml.sh index 9affdff4..1a281db2 100755 --- a/overlays/firmware-extended/10-firmware-config/scripts/01-install-yaml.sh +++ b/overlays/firmware-extended/10-firmware-config/scripts/01-install-yaml.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ -z "$CREATE_FIRMWARE" ]]; then echo "Error: This script should be run within the create_firmware.sh environment." diff --git a/overlays/firmware-extended/10-firmware-config/test/deploy-run.sh b/overlays/firmware-extended/10-firmware-config/test/deploy-run.sh index 03fad1de..d0db3f24 100755 --- a/overlays/firmware-extended/10-firmware-config/test/deploy-run.sh +++ b/overlays/firmware-extended/10-firmware-config/test/deploy-run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ $# -lt 1 ]]; then echo "Usage: $0 [optional-args]" diff --git a/overlays/firmware-extended/12-camera-v4l2-mpp/scripts/01-v4l2-mpp.sh b/overlays/firmware-extended/12-camera-v4l2-mpp/scripts/01-v4l2-mpp.sh index 411fa4da..a392e8d3 100755 --- a/overlays/firmware-extended/12-camera-v4l2-mpp/scripts/01-v4l2-mpp.sh +++ b/overlays/firmware-extended/12-camera-v4l2-mpp/scripts/01-v4l2-mpp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash GIT_URL=https://github.com/paxx12/v4l2-mpp.git GIT_SHA=664e0891089a199d4fc6d9b50bb8f72b67aa4058 diff --git a/overlays/firmware-extended/12-camera-v4l2-mpp/scripts/02-extra-apps.sh b/overlays/firmware-extended/12-camera-v4l2-mpp/scripts/02-extra-apps.sh index b567b2a4..fd1c222c 100755 --- a/overlays/firmware-extended/12-camera-v4l2-mpp/scripts/02-extra-apps.sh +++ b/overlays/firmware-extended/12-camera-v4l2-mpp/scripts/02-extra-apps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash CUR_DIR="$(realpath "$(dirname "$0")")" diff --git a/overlays/firmware-extended/12-camera-v4l2-mpp/test/run-imposter.sh b/overlays/firmware-extended/12-camera-v4l2-mpp/test/run-imposter.sh index f3b91a6a..c2ec9c4d 100755 --- a/overlays/firmware-extended/12-camera-v4l2-mpp/test/run-imposter.sh +++ b/overlays/firmware-extended/12-camera-v4l2-mpp/test/run-imposter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ROOT_DIR="$(dirname "$(realpath "$0")")/.." diff --git a/overlays/firmware-extended/13-rfid-support/pre-scripts/01_klippy_fix_lf.sh b/overlays/firmware-extended/13-rfid-support/pre-scripts/01_klippy_fix_lf.sh index 1a465a3e..e8949028 100755 --- a/overlays/firmware-extended/13-rfid-support/pre-scripts/01_klippy_fix_lf.sh +++ b/overlays/firmware-extended/13-rfid-support/pre-scripts/01_klippy_fix_lf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ $# -ne 1 ]]; then echo "Usage: $0 " diff --git a/overlays/firmware-extended/13-rfid-support/test/run.sh b/overlays/firmware-extended/13-rfid-support/test/run.sh index 6a8a037a..d7c44343 100755 --- a/overlays/firmware-extended/13-rfid-support/test/run.sh +++ b/overlays/firmware-extended/13-rfid-support/test/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ROOT_DIR="$(dirname "$(realpath "$0")")/.." diff --git a/overlays/firmware-extended/22-vpn/root/usr/local/bin/tailscale-pkg b/overlays/firmware-extended/22-vpn/root/usr/local/bin/tailscale-pkg index f0c5528b..4821af52 100755 --- a/overlays/firmware-extended/22-vpn/root/usr/local/bin/tailscale-pkg +++ b/overlays/firmware-extended/22-vpn/root/usr/local/bin/tailscale-pkg @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash VERSION=1.92.5 URL="https://pkgs.tailscale.com/stable/tailscale_${VERSION}_arm64.tgz" diff --git a/overlays/firmware-extended/51-enable-moonraker-modules/scripts/01-install-apprise.sh b/overlays/firmware-extended/51-enable-moonraker-modules/scripts/01-install-apprise.sh index 182b4f7d..60e34d1d 100755 --- a/overlays/firmware-extended/51-enable-moonraker-modules/scripts/01-install-apprise.sh +++ b/overlays/firmware-extended/51-enable-moonraker-modules/scripts/01-install-apprise.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ -z "$CREATE_FIRMWARE" ]]; then echo "Error: This script should be run within the create_firmware.sh environment." diff --git a/overlays/firmware-extended/51-enable-moonraker-modules/scripts/02-install-wled.sh b/overlays/firmware-extended/51-enable-moonraker-modules/scripts/02-install-wled.sh index c2cd6740..ad5c8aca 100755 --- a/overlays/firmware-extended/51-enable-moonraker-modules/scripts/02-install-wled.sh +++ b/overlays/firmware-extended/51-enable-moonraker-modules/scripts/02-install-wled.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ -z "$CREATE_FIRMWARE" ]]; then echo "Error: This script should be run within the create_firmware.sh environment." diff --git a/overlays/firmware-extended/90-web-frontend/scripts/01-install-fluidd.sh b/overlays/firmware-extended/90-web-frontend/scripts/01-install-fluidd.sh index 3c5c11d1..97651897 100755 --- a/overlays/firmware-extended/90-web-frontend/scripts/01-install-fluidd.sh +++ b/overlays/firmware-extended/90-web-frontend/scripts/01-install-fluidd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ -z "$CREATE_FIRMWARE" ]]; then echo "Error: This script should be run within the create_firmware.sh environment." diff --git a/overlays/firmware-extended/90-web-frontend/scripts/02-install-mainsail.sh b/overlays/firmware-extended/90-web-frontend/scripts/02-install-mainsail.sh index 9da05e79..65204e9a 100755 --- a/overlays/firmware-extended/90-web-frontend/scripts/02-install-mainsail.sh +++ b/overlays/firmware-extended/90-web-frontend/scripts/02-install-mainsail.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ -z "$CREATE_FIRMWARE" ]]; then echo "Error: This script should be run within the create_firmware.sh environment." diff --git a/overlays/firmware-extended/99-monitoring/scripts/01-prometheus-klipper-exporter.sh b/overlays/firmware-extended/99-monitoring/scripts/01-prometheus-klipper-exporter.sh index 15b2d0af..844950c1 100755 --- a/overlays/firmware-extended/99-monitoring/scripts/01-prometheus-klipper-exporter.sh +++ b/overlays/firmware-extended/99-monitoring/scripts/01-prometheus-klipper-exporter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ -z "$CREATE_FIRMWARE" ]]; then echo "Error: This script should be run within the create_firmware.sh environment." diff --git a/overlays/firmware-extended/99-remote-screen/pre-scripts/01-install-screen-apps.sh b/overlays/firmware-extended/99-remote-screen/pre-scripts/01-install-screen-apps.sh index 4d506a11..ca8c09be 100755 --- a/overlays/firmware-extended/99-remote-screen/pre-scripts/01-install-screen-apps.sh +++ b/overlays/firmware-extended/99-remote-screen/pre-scripts/01-install-screen-apps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ -z "$CREATE_FIRMWARE" ]]; then echo "Error: This script should be run within the create_firmware.sh environment." diff --git a/overlays/firmware-extended/99-remote-screen/scripts/01-verify-screen-apps.sh b/overlays/firmware-extended/99-remote-screen/scripts/01-verify-screen-apps.sh index b55bd67d..3d2d056f 100755 --- a/overlays/firmware-extended/99-remote-screen/scripts/01-verify-screen-apps.sh +++ b/overlays/firmware-extended/99-remote-screen/scripts/01-verify-screen-apps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ROOT_DIR="$(realpath "$(dirname "$0")/../../../..")" diff --git a/overlays/firmware-extended/99-remote-screen/test/run.sh b/overlays/firmware-extended/99-remote-screen/test/run.sh index 24ce0a28..6a7510f2 100755 --- a/overlays/firmware-extended/99-remote-screen/test/run.sh +++ b/overlays/firmware-extended/99-remote-screen/test/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ROOT_DIR="$(dirname "$(realpath "$0")")/.." diff --git a/scripts/build_docs.sh b/scripts/build_docs.sh index ee46eb93..4a2f8a5a 100755 --- a/scripts/build_docs.sh +++ b/scripts/build_docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/scripts/dev/find_exact_version.sh b/scripts/dev/find_exact_version.sh index 5f40f2b8..30f1d924 100755 --- a/scripts/dev/find_exact_version.sh +++ b/scripts/dev/find_exact_version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ $# -lt 3 ]]; then echo "Usage: $0 [file-to-check]" diff --git a/scripts/dev/save-patch.sh b/scripts/dev/save-patch.sh index 0036b6c8..91e7ee1b 100755 --- a/scripts/dev/save-patch.sh +++ b/scripts/dev/save-patch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ $# -ne 3 ]]; then echo "Usage: $0 " diff --git a/scripts/dev/upgrade-firmware.sh b/scripts/dev/upgrade-firmware.sh index 0a44b82d..5d66fa9a 100755 --- a/scripts/dev/upgrade-firmware.sh +++ b/scripts/dev/upgrade-firmware.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ $# -ne 2 ]]; then echo "usage: $0 " diff --git a/scripts/helpers/boot_fit.sh b/scripts/helpers/boot_fit.sh index eec40feb..04098891 100755 --- a/scripts/helpers/boot_fit.sh +++ b/scripts/helpers/boot_fit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e