From 28d18d3e735250d454dcb11c8fb75900a6c8bae4 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Wed, 27 Jan 2016 10:25:53 +0100 Subject: [PATCH] scripts: improve shebang compatibility --- build | 3 ++- scripts/exec-plugins.sh | 2 +- test | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build b/build index e2bb47ab..e9217147 100755 --- 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" diff --git a/scripts/exec-plugins.sh b/scripts/exec-plugins.sh index 05d0cd4c..d154ace1 100755 --- a/scripts/exec-plugins.sh +++ b/scripts/exec-plugins.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash NETCONFPATH=${NETCONFPATH-/etc/cni/net.d} diff --git a/test b/test index 0e315149..bd123ff6 100755 --- 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