From ef6cd36f1a3621c9e57a12161e24c3bfebbaba12 Mon Sep 17 00:00:00 2001 From: "Krzysztof Nazarewski (kdn)" Date: Mon, 30 Jun 2025 11:59:35 +0200 Subject: [PATCH] [misc] fix arch install.sh error with empty temporary dependencies handle empty var before calling removal command --- release_files/install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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