From: Stefan Junker Date: Wed, 27 Jan 2016 09:25:53 +0000 (+0100) Subject: scripts: improve shebang compatibility X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=28d18d3e735250d454dcb11c8fb75900a6c8bae4;p=cni.git scripts: improve shebang compatibility --- diff --git a/build b/build index e2bb47a..e921714 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 05d0cd4..d154ace 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 0e31514..bd123ff 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