Add checks for fakeroot chown

This commit is contained in:
Filippo Squillace 2023-02-17 18:40:19 +01:00
parent 95f97a62b7
commit b976f767d5

View file

@ -54,12 +54,22 @@ PACMAN_OPTIONS="--noconfirm --disable-download-timeout"
$SUDO pacman $PACMAN_OPTIONS -S grep coreutils
# shellcheck disable=SC2086
# shellcheck disable=SC2046
$SUDO pacman $PACMAN_OPTIONS -S $(pacman -Sg base-devel | cut -d ' ' -f 2 | grep -v sudo)
$SUDO pacman $PACMAN_OPTIONS -Syu --ignore sudo base-devel
info "Checking basic executables work..."
$SUDO pacman -Qi pacman 1> /dev/null
/usr/bin/groot --help 1> /dev/null
# Test FAKEROOTDONTTRYCHOWN is set to true by default
set +u
if [[ -z $FAKEROOTKEY ]]
then
fakeroot chown root /tmp
else
chown root /tmp
fi
set -u
repo_package1=tree
echo "Checking ${repo_package1} package from official repo..."
# shellcheck disable=SC2086