Browse Source

Fix Bash shebangs compatibility

Michał Kowalczyk 5 years ago
parent
commit
c9eb1d84e1

+ 1 - 1
LibOS/shim/test/apps/apache/benchmark-ab.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 PROTOCOL=${PROTOCOL:=http}
 declare -A THROUGHPUTS

+ 1 - 1
LibOS/shim/test/apps/bash/bash_test.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 times=$1
 [ $times -gt 0 2> /dev/null ] || times=300

+ 2 - 1
LibOS/shim/test/apps/bash/tst.sh

@@ -1,4 +1,5 @@
-#! /bin/sh
+#!/usr/bin/env bash
+
 ###############################################################################
 #  The BYTE UNIX Benchmarks - Release 3
 #          Module: tst.sh   SID: 3.4 5/15/91 19:30:24

+ 2 - 1
LibOS/shim/test/apps/bash/unixbench.sh

@@ -1,4 +1,5 @@
-#! /bin/bash
+#!/usr/bin/env bash
+
 ###############################################################################
 #  The BYTE UNIX Benchmarks - Release 3
 #          Module: multi.sh   SID: 3.4 5/15/91 19:30:24

+ 1 - 1
LibOS/shim/test/apps/lighttpd/benchmark-http.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ## On Ubuntu, this script requires apache2-utils for the ab binary.
 # Run like: ./benchmark-http.sh server

+ 2 - 1
LibOS/shim/test/apps/ltp/syscalls.sh

@@ -1,4 +1,5 @@
-#!/bin/sh
+#!/usr/bin/env bash
+
 cd `dirname $0`
 export LTPROOT=$PWD"/opt/ltp"
 awk -v SGX=$SGX_RUN -f edit_sys_tests.awk $LTPROOT/runtest/syscalls > syscalls.graphene 

+ 1 - 1
LibOS/shim/test/apps/python/web-test.sh

@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
 ## We really need to pick a unique ephemeral port; start by just picking pid+1024
 PORT=$(($$ + 1024))

+ 1 - 1
Pal/ipc/linux/install.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 SCRIPT=`readlink -f "${BASH_SOURCE[0]}"`
 DIR=`dirname $SCRIPT`

+ 1 - 1
Pal/ipc/linux/load.sh

@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
 MOD=graphene-ipc
 MODNAME=graphene_ipc

+ 1 - 1
Pal/ipc/linux/uninstall.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 DIR=`readlink -f "${BASH_SOURCE[0]}"`
 MOD=graphene-ipc

+ 1 - 1
Runtime/pal_loader

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 if [ "$1" == "SGX" ]; then
 	if [ "$SGX" != "0" ]; then

+ 1 - 1
Scripts/list-all-graphene.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ID=`id -u`
 PGIDS=`ps -a -o pgid,command | tail -n +2 | \

+ 1 - 1
Tools/gsce

@@ -83,7 +83,7 @@ def gen_app_executor(app_name, bin_cmd, proj_dir) :
   print "e_path: " + e_path
   ef = open(e_path, "w")
   make_exec(e_path)
-  ef.write('#!/bin/bash \n \n')
+  ef.write('#!/usr/bin/env bash\n\n')
   ef.write('cd ' + proj_dir + '/LibOS/shim/test/apps/' + app_name +'\n')
   ef.write('# Generate EINITOKEN \n')
   ef.write(proj_dir + '/Pal/src/host/Linux-SGX/signer/pal-sgx-get-token -output '