From c5a7a10ca35de6cc54cd16c424ef81af8609a30d Mon Sep 17 00:00:00 2001 From: Samuel Rounce Date: Sat, 28 Sep 2024 18:34:39 +0100 Subject: [PATCH] fix: docker-entrypoint.sh uses safe shebang Shebangs should use /usr/bin/env to locate the interpreter. Setting a path directly to the interpreter itself tends to be brittle and prone to breaking. --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 679acc6..5837164 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eo pipefail # exit on error, error on any fail in pipe (not just last cmd); add -x to print each cmd; see gist bash_strict_mode.md