diff --git a/scripts/generate-definitelytyped.sh b/scripts/generate-definitelytyped.sh index c3de7a8576c..118401b43cb 100755 --- a/scripts/generate-definitelytyped.sh +++ b/scripts/generate-definitelytyped.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ $# -eq 0 ]; then echo "Pass in a version like ./scripts/generate-vscode-dts.sh 1.30." diff --git a/scripts/node-electron.sh b/scripts/node-electron.sh index 1c3d894a1d1..0a822b6c383 100755 --- a/scripts/node-electron.sh +++ b/scripts/node-electron.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ "$OSTYPE" == "darwin"* ]]; then realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; } diff --git a/scripts/npm.sh b/scripts/npm.sh index 93562dd24d6..30f11cfdcdf 100755 --- a/scripts/npm.sh +++ b/scripts/npm.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash -yarn $* \ No newline at end of file +yarn $* diff --git a/scripts/test-documentation.sh b/scripts/test-documentation.sh index 54a0672945a..6595e6d2240 100755 --- a/scripts/test-documentation.sh +++ b/scripts/test-documentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e if [[ "$OSTYPE" == "darwin"* ]]; then diff --git a/scripts/test-integration.sh b/scripts/test-integration.sh index 6856ebd525f..b302ce28db9 100755 --- a/scripts/test-integration.sh +++ b/scripts/test-integration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e if [[ "$OSTYPE" == "darwin"* ]]; then diff --git a/scripts/test.sh b/scripts/test.sh index 651cffb88f5..0744c096e54 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,5 +1,5 @@ -#!/bin/bash - +#!/usr/bin/env bash +set -e if [[ "$OSTYPE" == "darwin"* ]]; then realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }