mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Only remove orphans if there are any
This commit is contained in:
@@ -13,6 +13,9 @@ else
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\e[32m\nRemove orphan system packages\e[0m"
|
orphans=$(pacman -Qtdq)
|
||||||
sudo pacman -Rs --noconfirm $(pacman -Qtdq)
|
if [[ -n $orphans ]]; then
|
||||||
echo
|
echo -e "\e[32m\nRemove orphan system packages\e[0m"
|
||||||
|
sudo pacman -Rs --noconfirm "$orphans"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user