diff --git a/cmd/zgenhostid/zgenhostid b/cmd/zgenhostid/zgenhostid index db690eca32..8b468740c7 100755 --- a/cmd/zgenhostid/zgenhostid +++ b/cmd/zgenhostid/zgenhostid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Emulate genhostid(1) available on RHEL/CENTOS, for use on distros # which do not provide that utility. diff --git a/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in b/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in index c22141f00f..a2a3ef0370 100755 --- a/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in +++ b/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash get_devtype() { local typ diff --git a/contrib/dracut/90zfs/module-setup.sh.in b/contrib/dracut/90zfs/module-setup.sh.in index 4efc4b0186..e94f9f2dc9 100755 --- a/contrib/dracut/90zfs/module-setup.sh.in +++ b/contrib/dracut/90zfs/module-setup.sh.in @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash check() { # We depend on udev-rules being loaded diff --git a/contrib/dracut/90zfs/zfs-generator.sh.in b/contrib/dracut/90zfs/zfs-generator.sh.in index 0b8a8aaca7..120b9ecf95 100755 --- a/contrib/dracut/90zfs/zfs-generator.sh.in +++ b/contrib/dracut/90zfs/zfs-generator.sh.in @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "zfs-generator: starting" >> /dev/kmsg diff --git a/copy-builtin b/copy-builtin index 700e6f4f07..81fd175656 100755 --- a/copy-builtin +++ b/copy-builtin @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/scripts/commitcheck.sh b/scripts/commitcheck.sh index 2954b0fd72..c7515c23e1 100755 --- a/scripts/commitcheck.sh +++ b/scripts/commitcheck.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash REF="HEAD" diff --git a/scripts/kmodtool b/scripts/kmodtool index b928c92862..240cde3106 100755 --- a/scripts/kmodtool +++ b/scripts/kmodtool @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # kmodtool - Helper script for building kernel module RPMs # Copyright (c) 2003-2012 Ville Skyttä , diff --git a/scripts/zimport.sh b/scripts/zimport.sh index d7e82fe9f0..304ab7623d 100755 --- a/scripts/zimport.sh +++ b/scripts/zimport.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Verify that an assortment of known good reference pools can be imported # using different versions of the ZoL code. diff --git a/tests/zfs-tests/include/commands.cfg b/tests/zfs-tests/include/commands.cfg index 79f05e54a5..77562700c8 100644 --- a/tests/zfs-tests/include/commands.cfg +++ b/tests/zfs-tests/include/commands.cfg @@ -131,6 +131,7 @@ export SYSTEM_FILES_FREEBSD='chflags uncompress' export SYSTEM_FILES_LINUX='attr + bash blkid blockdev chattr diff --git a/tests/zfs-tests/tests/perf/scripts/prefetch_io.sh b/tests/zfs-tests/tests/perf/scripts/prefetch_io.sh index 75bf08f4b6..b8d8ae8859 100755 --- a/tests/zfs-tests/tests/perf/scripts/prefetch_io.sh +++ b/tests/zfs-tests/tests/perf/scripts/prefetch_io.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file and its contents are supplied under the terms of the