mirror of
https://github.com/fsquillace/junest.git
synced 2026-01-23 02:34:30 +00:00
Add checks for fakeroot chown
This commit is contained in:
parent
95f97a62b7
commit
b976f767d5
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue