diff --git a/release_files/install.sh b/release_files/install.sh index 0f63529ea..696cb03f1 100755 --- a/release_files/install.sh +++ b/release_files/install.sh @@ -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 \ No newline at end of file +esac