[misc] fix arch install.sh error with empty temporary dependencies

handle empty var before calling removal command
This commit is contained in:
Krzysztof Nazarewski (kdn)
2025-06-30 11:59:35 +02:00
committed by GitHub
parent c1c71b6d39
commit ef6cd36f1a

View File

@ -154,8 +154,10 @@ add_aur_repo() {
cd netbird-ui && makepkg -sri --noconfirm
fi
# Clean up the installed packages
${SUDO} pacman -Rs "$REMOVE_PKGS" --noconfirm
if [ -n "$REMOVE_PKGS" ]; then
# Clean up the installed packages
${SUDO} pacman -Rs "$REMOVE_PKGS" --noconfirm
fi
}
prepare_tun_module() {
@ -494,4 +496,4 @@ case "$UPDATE_FLAG" in
;;
*)
install_netbird
esac
esac