diff --git a/desktop/build.sh b/desktop/build.sh index 89fcde567a..8dcec9e791 100755 --- a/desktop/build.sh +++ b/desktop/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Canonical Ltd. # All rights reserved. diff --git a/desktop/run-app.sh.in b/desktop/run-app.sh.in index e4547fad15..02bae1ad28 100755 --- a/desktop/run-app.sh.in +++ b/desktop/run-app.sh.in @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Canonical Ltd. # All rights reserved. diff --git a/ios/StatusIm.xcodeproj/project.pbxproj b/ios/StatusIm.xcodeproj/project.pbxproj index c3570dd28b..239271d96c 100644 --- a/ios/StatusIm.xcodeproj/project.pbxproj +++ b/ios/StatusIm.xcodeproj/project.pbxproj @@ -1825,7 +1825,7 @@ ); runOnlyForDeploymentPostprocessing = 1; shellPath = /bin/sh; - shellScript = "#!/bin/bash\n\nsource \"${PROJECT_DIR}/scripts/set_xcode_version.sh\""; + shellScript = "#!/usr/bin/env bash\n\nsource \"${PROJECT_DIR}/scripts/set_xcode_version.sh\""; }; /* End PBXShellScriptBuildPhase section */ diff --git a/ios/scripts/set_xcode_version.sh b/ios/scripts/set_xcode_version.sh index 983e4d0a2a..cb266218c3 100755 --- a/ios/scripts/set_xcode_version.sh +++ b/ios/scripts/set_xcode_version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script automatically sets the version and short version string of # an Xcode project from the Git repository containing the project. diff --git a/modules/react-native-status/desktop/build-status-go.sh b/modules/react-native-status/desktop/build-status-go.sh index 6e63e205a9..db79f14ee2 100755 --- a/modules/react-native-status/desktop/build-status-go.sh +++ b/modules/react-native-status/desktop/build-status-go.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export GOROOT=$2 export GOPATH=$3 diff --git a/scripts/build-desktop.sh b/scripts/build-desktop.sh index 6b975411dc..9f52096751 100755 --- a/scripts/build-desktop.sh +++ b/scripts/build-desktop.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/scripts/download-package-files.sh b/scripts/download-package-files.sh index 4b44a1c563..45198b4f11 100755 --- a/scripts/download-package-files.sh +++ b/scripts/download-package-files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash filename=$1 #fileid="1yPTGcPe5DZd3ubzAgUBp3aAQRAOK9eKQ" diff --git a/scripts/merge-pr.sh b/scripts/merge-pr.sh index 64788f8a75..bd6a4902df 100755 --- a/scripts/merge-pr.sh +++ b/scripts/merge-pr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eof pipefail diff --git a/scripts/prepare-for-platform.sh b/scripts/prepare-for-platform.sh index 39a57d8bfd..40250142e4 100755 --- a/scripts/prepare-for-platform.sh +++ b/scripts/prepare-for-platform.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/scripts/run-environment-check.sh b/scripts/run-environment-check.sh index 97ac21f10b..da588b1f77 100755 --- a/scripts/run-environment-check.sh +++ b/scripts/run-environment-check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash RED='\033[0;31m' GREEN='\033[0;32m' diff --git a/scripts/start-react-native.sh b/scripts/start-react-native.sh index b4f13abeb0..589f4c064d 100755 --- a/scripts/start-react-native.sh +++ b/scripts/start-react-native.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash RED='\033[0;31m' GREEN='\033[0;32m' diff --git a/test/appium/docker/entry_point.sh b/test/appium/docker/entry_point.sh index 756965f557..f0907e95e0 100644 --- a/test/appium/docker/entry_point.sh +++ b/test/appium/docker/entry_point.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash APPIUM_LOG="/var/log/appium.log" CMD="appium --log $APPIUM_LOG"