From 13187f276fc0b0eea5f967fca5fe1bb60609e89d Mon Sep 17 00:00:00 2001 From: Tuan Anh Tran Date: Sat, 21 Nov 2020 00:52:02 +0700 Subject: [PATCH] fix: non-portable shebang #2812 Signed-off-by: Tuan Anh Tran --- examples/all-the-things.sh | 3 ++- examples/copy.sh | 3 ++- examples/lighttpd.sh | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/all-the-things.sh b/examples/all-the-things.sh index de04cd316..6b2ce553b 100755 --- a/examples/all-the-things.sh +++ b/examples/all-the-things.sh @@ -1,5 +1,6 @@ -#!/usr/bin/env bash -x +#!/usr/bin/env bash set -e +set -x read export PATH=`pwd`:$PATH systemctl restart ocid diff --git a/examples/copy.sh b/examples/copy.sh index 069fb31ca..84a24930a 100755 --- a/examples/copy.sh +++ b/examples/copy.sh @@ -1,5 +1,6 @@ -#!/usr/bin/env bash -x +#!/usr/bin/env bash set -e +set -x : " Build a temporary directory; make sure ocid is running." export PATH=`pwd`:$PATH d=`mktemp -d` diff --git a/examples/lighttpd.sh b/examples/lighttpd.sh index fd98a72c2..e8c95c821 100755 --- a/examples/lighttpd.sh +++ b/examples/lighttpd.sh @@ -1,5 +1,5 @@ -#!/usr/bin/env bash -x - +#!/usr/bin/env bash +set -x ctr1=$(buildah from "${1:-fedora}") ## Get all updates and install our minimal httpd server