summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger Zanoni <rzanoni@igalia.com>2021-05-17 11:01:09 +0200
committerRoger Zanoni <rzanoni@igalia.com>2021-05-17 11:01:12 +0200
commit111aead729f38edee945d371815eb378a963a6c1 (patch)
tree1e7b439675c420e8da66ceffc0b6ece3c60f17b3
parent2b75334dbb3846715b55436da35f59b4848afd7d (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 \