mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Extract pkg cmd abstractions and clean up all migrations (#1291)
* No using custom chromium.desktop any more * Spacing * Rely on $OMARCHY_PATH * Add common pkg and cmd functions for use in migrations and elsewhere * Simple pkg-adds * Later migration does it * Ensure running migrations on older installs have the new pkg/cmds available * Spacing * Use new abstractions * Installed in later migration * Needless comment * Use new commands * Fix package name from 'batt' to 'bat'
This commit is contained in:
committed by
GitHub
parent
4f6f92b2cc
commit
a3c5e589f6
@@ -1,15 +1,13 @@
|
||||
echo "Migrate AUR packages to official repos where possible"
|
||||
|
||||
reinstall_package_opr() {
|
||||
if pacman -Q $1 >/dev/null; then
|
||||
if pkg-present $1; then
|
||||
sudo pacman -Rns --noconfirm $1
|
||||
sudo pacman -S --noconfirm ${2:-$1}
|
||||
fi
|
||||
}
|
||||
|
||||
if pacman -Q yay-bin-debug >/dev/null; then
|
||||
sudo pacman -Rns --noconfirm yay-bin-debug
|
||||
fi
|
||||
pkg-remove yay-bin-debug
|
||||
|
||||
reinstall_package_opr yay-bin yay
|
||||
reinstall_package_opr obsidian-bin obsidian
|
||||
|
||||
Reference in New Issue
Block a user