tests: get rid of which

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13259
This commit is contained in:
наб
2022-03-09 13:52:14 +01:00
committed by Brian Behlendorf
parent 62c5ccdf92
commit 592cf7f1e2
5 changed files with 6 additions and 11 deletions
+1 -2
View File
@@ -109,8 +109,7 @@ export SYSTEM_FILES_COMMON='arp
uuidgen
vmstat
wait
wc
which'
wc'
export SYSTEM_FILES_FREEBSD='chflags
compress
+1 -1
View File
@@ -2618,7 +2618,7 @@ function add_user_linux #<group_name> <user_name> <basedir>
# Add new users to the same group and the command line utils.
# This allows them to be run out of the original users home
# directory as long as it permissioned to be group readable.
cmd_group=$(stat --format="%G" $(which zfs))
cmd_group=$(stat --format="%G" $(command -v zfs))
log_must usermod -a -G $cmd_group $user
return 0