diff options
author | 2023-07-27 11:53:28 +0100 | |
---|---|---|
committer | 2023-07-27 11:53:28 +0100 | |
commit | 04225e090e9936df6c5a9ddd5a3926d13e0001df (patch) | |
tree | 0399876bf5edce5ed16e92675edfac6b2d30ec45 /gen_configkernel.sh | |
parent | defaults/software.sh: use dist tarball for libxcrypt (diff) | |
download | genkernel-04225e090e9936df6c5a9ddd5a3926d13e0001df.tar.gz genkernel-04225e090e9936df6c5a9ddd5a3926d13e0001df.tar.bz2 genkernel-04225e090e9936df6c5a9ddd5a3926d13e0001df.zip |
Replace use of `which`
We're trying to phase it out as it's non-portable. Use bash's `type -P` where
available (preferable as it avoids user functions) or `command -v` if POSIX.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'gen_configkernel.sh')
-rwxr-xr-x | gen_configkernel.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gen_configkernel.sh b/gen_configkernel.sh index 62113dc..44a06b3 100755 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -231,7 +231,7 @@ set_initramfs_compression_method() { } config_kernel() { - local diff_cmd="$(which zdiff 2>/dev/null)" + local diff_cmd="$(type -P zdiff 2>/dev/null)" if [ -z "${diff_cmd}" ] then print_warning 5 "zdiff is not available." |