From 85f8bd64cb4474d66ccdc58be332a8f8946576bd Mon Sep 17 00:00:00 2001 From: q3k <q3k@q3k.org> Date: Wed, 24 Jul 2019 23:30:45 +0200 Subject: [PATCH] fix(micropython): Unhardcode /bin/bash /bin/bash does not exist on odd unixen (BSDs, NixOS, ...). /usr/bin/env is the current de facto standard to get bash somewhat universally. Manual merge for !37 --- lib/micropython/gen-frozen.sh | 2 +- lib/micropython/gen-mpy-cross.sh | 2 +- lib/micropython/gen-qstr.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/micropython/gen-frozen.sh b/lib/micropython/gen-frozen.sh index 3bf9c4ea..a032c5d8 100755 --- a/lib/micropython/gen-frozen.sh +++ b/lib/micropython/gen-frozen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e PYTHON="$1" diff --git a/lib/micropython/gen-mpy-cross.sh b/lib/micropython/gen-mpy-cross.sh index 56f10a23..acc526b6 100755 --- a/lib/micropython/gen-mpy-cross.sh +++ b/lib/micropython/gen-mpy-cross.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e SOURCE_DIR="$1" diff --git a/lib/micropython/gen-qstr.sh b/lib/micropython/gen-qstr.sh index 5f44d649..dda7d457 100755 --- a/lib/micropython/gen-qstr.sh +++ b/lib/micropython/gen-qstr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e PYTHON="$1" -- GitLab