mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Turn pkg and cmd functions into bins to avoid PATH issues in subshells
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
echo "Migrate AUR packages to official repos where possible"
|
||||
|
||||
reinstall_package_opr() {
|
||||
if pkg-present $1; then
|
||||
if omarchy-pkg-present $1; then
|
||||
sudo pacman -Rns --noconfirm $1
|
||||
sudo pacman -S --noconfirm ${2:-$1}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg-remove yay-bin-debug
|
||||
omarchy-pkg-drop yay-bin-debug
|
||||
|
||||
reinstall_package_opr yay-bin yay
|
||||
reinstall_package_opr obsidian-bin obsidian
|
||||
|
||||
Reference in New Issue
Block a user