Skip to content

Commit

Permalink
Clean up dnf() function in "make env"
Browse files Browse the repository at this point in the history
The "function" keyword is not needed (not POSIX either) and which(1) is
better than hardcoding the path.

No functional change.
  • Loading branch information
dmnks authored and pmatilai committed Aug 16, 2023
1 parent ebd0905 commit 44c7648
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/mktree.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ case $CMD in
env)
set -a
mount_tree $SANDBOX_DIR
function dnf() {
/usr/bin/dnf --installroot=$RPMTEST "$@"
}
dnf() { $(which dnf) --installroot=$RPMTEST "$@"; }
echo "$ENV_MOTD"
$SHELL
exit 0
Expand Down

0 comments on commit 44c7648

Please sign in to comment.