From 84772ebf14e5a7c67ba573a61f0a50048802c799 Mon Sep 17 00:00:00 2001 From: Tygo van den Hurk <91738110+Tygo-van-den-Hurk@users.noreply.github.com> Date: Sun, 20 Apr 2025 10:23:31 +0200 Subject: [PATCH] fix: changed shebang to make scripts more platform independent (#2893) See for example this thread: https://stackoverflow.com/questions/21612980/why-is-usr-bin-env-bash-superior-to-bin-bash on why its better to use '#!/usr/bin/env bash' instead. Without this change these scripts will not run on some platforms. This is not a breaking change for the platforms it already works on. --- app/run-ble-test.sh | 2 +- docs/src/templates/setup.sh.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/run-ble-test.sh b/app/run-ble-test.sh index cf883c63f..8c65c91b6 100755 --- a/app/run-ble-test.sh +++ b/app/run-ble-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2023 The ZMK Contributors # SPDX-License-Identifier: MIT diff --git a/docs/src/templates/setup.sh.mustache b/docs/src/templates/setup.sh.mustache index cde3a8a17..49b2ee227 100644 --- a/docs/src/templates/setup.sh.mustache +++ b/docs/src/templates/setup.sh.mustache @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2020 The ZMK Contributors # SPDX-License-Identifier: MIT