diff --git a/scripts/activate.sh b/scripts/activate.sh index 81240cafd..95f60a33d 100755 --- a/scripts/activate.sh +++ b/scripts/activate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#! /usr/bin/env bash # Make sure this is sourced. if [[ "$0" == "${BASH_SOURCE[0]}" ]]; then @@ -78,7 +78,6 @@ print("{}{}.{}".format(platform.python_implementation().lower(), *sys.version_in fi - # Just a flag so that we know this was supposedly run. export _PYAV_ACTIVATED=1 diff --git a/scripts/build b/scripts/build index 3b9346d60..4ee15d003 100755 --- a/scripts/build +++ b/scripts/build @@ -1,4 +1,4 @@ -#!/bin/bash +#! /usr/bin/env bash if [[ ! "$_PYAV_ACTIVATED" ]]; then export here="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)" diff --git a/scripts/build-deps b/scripts/build-deps index f34ed5a5b..5f32cf140 100755 --- a/scripts/build-deps +++ b/scripts/build-deps @@ -1,4 +1,4 @@ -#!/bin/bash +#! /usr/bin/env bash if [[ ! "$_PYAV_ACTIVATED" ]]; then export here="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)" diff --git a/scripts/test b/scripts/test index 8244778b3..e91288baf 100755 --- a/scripts/test +++ b/scripts/test @@ -1,4 +1,4 @@ -#!/bin/bash +#! /usr/bin/env bash # Exit as soon as something errors. set -e