Addet remove question

This commit is contained in:
pika 2025-05-22 16:17:51 +02:00
parent 8387f4802e
commit 2a0e9c7919

View file

@ -116,7 +116,7 @@ main() {
check "Dependency list generated!"
pen red bold "There are ${#deplist[@]} items to install.."
# local pkgs="$@"
for ((i = 0; i < "${#deplist[@]}"; i++)); do
# for ((i = 0; i < "${#deplist[@]}"; i++)); do
for pkg in "${deplist[@]}"; do
spin bold yellow "Installing $pkg"
if run --err err --out out pkg-install "$pkg"; then
@ -130,14 +130,14 @@ main() {
continue
fi
done
done
# done
check "debug"
else
throw "Dependencies could not get generated!"
exit 69
fi
if confirm "Do you want to remove all installed packages?"; then
if confirm "Do you want to remove all installed packages?" </dev/tty; then
for pkg in "${deplist[@]}"; do
spin bold red "Removing $pkg"
if run --err err --out out pkg-remove "$pkg"; then