scripts: improve shebang compatibility
authorStefan Junker <mail@stefanjunker.de>
Wed, 27 Jan 2016 09:25:53 +0000 (10:25 +0100)
committerStefan Junker <mail@stefanjunker.de>
Wed, 27 Jan 2016 09:31:16 +0000 (10:31 +0100)
build
scripts/exec-plugins.sh
test

diff --git a/build b/build
index e2bb47a..e921714 100755 (executable)
--- a/build
+++ b/build
@@ -1,4 +1,5 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+set -e
 
 ORG_PATH="github.com/appc"
 REPO_PATH="${ORG_PATH}/cni"
index 05d0cd4..d154ace 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 NETCONFPATH=${NETCONFPATH-/etc/cni/net.d}
 
diff --git a/test b/test
index 0e31514..bd123ff 100755 (executable)
--- a/test
+++ b/test
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
 #
 # Run all CNI tests 
 #   ./test
@@ -7,6 +7,7 @@
 # Run tests for one package
 #   PKG=./plugins/ipam/dhcp ./test
 #
+set -e
 
 source ./build