diff --git a/repo/ttf-ms-win11-auto/PKGBUILD b/repo/ttf-ms-win11-auto/PKGBUILD index 969ed07..c57dd54 100644 --- a/repo/ttf-ms-win11-auto/PKGBUILD +++ b/repo/ttf-ms-win11-auto/PKGBUILD @@ -73,7 +73,7 @@ pkgbase=ttf-ms-win11-auto pkgname=($pkgbase{,-japanese,-korean,-sea,-thai,-zh_cn,-zh_tw,-other}) pkgver=10.0.22631.2428 -pkgrel=1 +pkgrel=2 arch=(any) url='https://www.microsoft.com/typography/fonts/product.aspx?PID=164' license=(custom) @@ -402,11 +402,15 @@ prepare() { echo "- Fonts are missing" echo -ne "- Mount filesystems as a non-privileged user: " touch test.mount - _mount= - udisksctl loop-setup -r -f test.mount --no-user-interaction >/dev/null 2>&1 && _mount=true + _unprivilegedMountAllowed=false + _udisksctlOutput=$(udisksctl loop-setup -r -f test.mount --no-user-interaction) && { + _unprivilegedMountAllowed=true + _testLoopDev=$(echo "$_udisksctlOutput" | awk '{print $NF}' RS='.\n') + udisksctl loop-delete -b "$_testLoopDev" --no-user-interaction + } rm test.mount - if [ $_mount ]; then + if [ "$_unprivilegedMountAllowed" = "true" ]; then echo "allowed" echo "- Downloading fonts directly" mkdir -p mnt/http