This commit is contained in:
committer
2024-06-08 15:07:40 -05:00
parent e50ecb3213
commit 03e1cbacba

View File

@@ -38,6 +38,11 @@ param_check() {
# -----
# always update the system
# -----
echo "- - - - -"
echo "if no uninstallable packages were found, the following error will be displayed:"
echo "\"error: no targets specified (use -h for help)\""
echo "- - - - -"
pacman -Rns $(pacman -Qtdq) # remove packages that are not needed
pacman -Syu # update install packages
@@ -189,7 +194,7 @@ fi
# -----
if [ ${operation} == "orphans" ] ; then
echo "- - - - -"
echo "if no orphans to be removed were found, the following error will be displayed:"
echo "if no removable orphans were found, the following error will be displayed:"
echo "\"error: argument '-' specified with empty stdin\""
echo "- - - - -"
echo "removing orphans..."