aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger Zanoni <rzanoni@igalia.com>2021-05-17 11:01:09 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2021-05-25 15:53:55 +0200
commitaee023df6393cce68e815d81d74e3da5d3b73a9e (patch)
tree7f4e271e28e12f5acbf5a6e383e60256688aeba0
parent33646fcf00177a750c4b9c7ef124bc22d130afa2 (diff)
If the shebang isn't in the first line the script's mime type is interpreted as text/plain and it is prevented from running with this error message: "runchrome: Exec format error" Bug-AGL: SPEC-3830 Signed-off-by: Roger Zanoni <rzanoni@igalia.com> Change-Id: Ica463a9560b4ac56647034c4b1750f40ed2e6b1c
-rw-r--r--runchrome.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/runchrome.sh b/runchrome.sh
index 5e6d3c5..3aa24d1 100644
--- a/runchrome.sh
+++ b/runchrome.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
# Copyright 2021 Igalia, S.L.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-#!/bin/sh
-
PORT=$1
exec /opt/chromium84/chrome \