From 1a85688c27bb94a332d7f086d45351241084d81b Mon Sep 17 00:00:00 2001 From: Jacob Hrbek Date: Thu, 23 Feb 2023 09:19:14 +0100 Subject: [PATCH] QA: Replace shebang with env-variant This is to provide a compatibility with nix such as GNU Guix to use the project painlessly without the need of deploying a sandboxed FHS environment. Signed-off-by: Jacob Hrbek --- src/hooks/hook-ethernet-dhcp.sh | 2 +- src/hooks/hook-parabola-buildbox.sh | 2 +- src/pvm-common.sh.inc | 2 +- src/pvm2tarball.sh | 2 +- src/pvmboot.sh | 2 +- src/pvmbootstrap.sh | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/hooks/hook-ethernet-dhcp.sh b/src/hooks/hook-ethernet-dhcp.sh index 65e64f1..0648b6a 100644 --- a/src/hooks/hook-ethernet-dhcp.sh +++ b/src/hooks/hook-ethernet-dhcp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/src/hooks/hook-parabola-buildbox.sh b/src/hooks/hook-parabola-buildbox.sh index d85ccfa..0d40397 100644 --- a/src/hooks/hook-parabola-buildbox.sh +++ b/src/hooks/hook-parabola-buildbox.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/src/pvm-common.sh.inc b/src/pvm-common.sh.inc index 6da7685..ce83afd 100644 --- a/src/pvm-common.sh.inc +++ b/src/pvm-common.sh.inc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################### # parabola-vmbootstrap -- create and start parabola virtual machines # # # diff --git a/src/pvm2tarball.sh b/src/pvm2tarball.sh index f3612f1..393c426 100755 --- a/src/pvm2tarball.sh +++ b/src/pvm2tarball.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################### # parabola-vmbootstrap -- create and start parabola virtual machines # # # diff --git a/src/pvmboot.sh b/src/pvmboot.sh index d37554a..65cad24 100755 --- a/src/pvmboot.sh +++ b/src/pvmboot.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################### # parabola-vmbootstrap -- create and start parabola virtual machines # # # diff --git a/src/pvmbootstrap.sh b/src/pvmbootstrap.sh index 288d4eb..d424b35 100755 --- a/src/pvmbootstrap.sh +++ b/src/pvmbootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################### # parabola-vmbootstrap -- create and start parabola virtual machines # # # @@ -317,7 +317,7 @@ pvm_bootstrap() # assumes: $arch $imagefile $loopdev $workdir , traps: INT TERM # create a master hook script msg2 "hooks.sh:" sudo tee "$workdir"/root/hooks.sh << EOF -#!/bin/bash +#!/usr/bin/env bash echo "[hooks.sh] boot successful - configuring ...." # generate the locale