Skip to content

Display and control your Android device

Use portable shebang for all bash scripts

Romain Vimont1c44dc2259f7
diff --git a/prebuilt-deps/prepare-dep b/prebuilt-deps/prepare-dep
index 34ddcbf5..f152e6cf 100755
--- a/prebuilt-deps/prepare-dep
+++ b/prebuilt-deps/prepare-dep
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
set -e
url="$1"
sum="$2"
diff --git a/run b/run
index bfb499ae..628c5c7e 100755
--- a/run
+++ b/run
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Run scrcpy generated in the specified BUILDDIR.
#
# This provides the same feature as "ninja run", except that it is possible to
diff --git a/scripts/run-scrcpy.sh b/scripts/run-scrcpy.sh
index f3130ee9..e93b639f 100755
--- a/scripts/run-scrcpy.sh
+++ b/scripts/run-scrcpy.sh
@@ -1,2 +1,2 @@
-#!/bin/bash
+#!/usr/bin/env bash
SCRCPY_SERVER_PATH="$MESON_BUILD_ROOT/server/scrcpy-server" "$MESON_BUILD_ROOT/app/scrcpy"