Skip to content

Commit

Permalink
fix(msfonts): remove old tarballs before makepkg
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAegis committed Oct 7, 2024
1 parent 10eff5c commit 6969efb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions modules/msfonts/0.user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

# aura -Ayu --noconfirm ttf-ms-win11-auto

git_repo_url="https://aur.archlinux.org/ttf-ms-win11-auto.git"
package_name="ttf-ms-win11-auto"

git_repo_url="https://aur.archlinux.org/${package_name}.git"
install_dir="$XDG_CACHE_HOME/ttf-ms-win11-auto"

if ! [ -d "$install_dir/.git" ]; then
Expand All @@ -18,8 +20,9 @@ fi

(
cd "$install_dir" || exit 1
rm "${package_name}"*.pkg.tar.zst
makepkg -si
sudo pacman -U --noconfirm ttf-ms-win11-auto*.pkg.tar.zst
sudo pacman -U --noconfirm "${package_name}"*.pkg.tar.zst
)


Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
},
"disabled": [],
"locked": [],
"lastUpdate": 1726679185498
"lastUpdate": 1728221522984
}

0 comments on commit 6969efb

Please sign in to comment.