From 6cf4ec58f76c2944d57299c41acd46177f4f344d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 17 Jul 2024 15:01:55 +0200 Subject: [PATCH] Make build scripts portable This allows looking up the path to bash from the PATH environment variable, as opposed to hardcoding its path in the shebang. --- script/build | 2 +- script/develop | 2 +- script/sync-vscode | 2 +- web.esphome.io/script/build_web | 2 +- web.esphome.io/script/develop_web | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/script/build b/script/build index 9f1b0b15..41a77679 100755 --- a/script/build +++ b/script/build @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Stop on errors set -e diff --git a/script/develop b/script/develop index d1b851be..f0846a52 100755 --- a/script/develop +++ b/script/develop @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Stop on errors set -e diff --git a/script/sync-vscode b/script/sync-vscode index 38e9fd58..436ed579 100755 --- a/script/sync-vscode +++ b/script/sync-vscode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copies all files which are shared between vscode and dashboard editor diff --git a/web.esphome.io/script/build_web b/web.esphome.io/script/build_web index 7affe0c7..ebc431a5 100755 --- a/web.esphome.io/script/build_web +++ b/web.esphome.io/script/build_web @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Stop on errors set -e diff --git a/web.esphome.io/script/develop_web b/web.esphome.io/script/develop_web index 832cfce3..d2a0e1c5 100755 --- a/web.esphome.io/script/develop_web +++ b/web.esphome.io/script/develop_web @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$PORT" ]; then PORT=5006