From c39a94ba538d2765cb686a25aeeecbe2d91c6e03 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 20 Jun 2024 17:56:19 +0200 Subject: Testing --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e46a4a6..165e249 100755 --- a/install.sh +++ b/install.sh @@ -613,7 +613,12 @@ linux_install_packages() { ;; "PORTAGE") # Try installing packages with emerge for Gentoo - local gentoo_packages=("$(yq e '.gentoo[]' "$packages_file" 2>/dev/null)") + if [[ -f "$packages_file" ]]; then + gentoo_packages=("$(yq e '.gentoo[]' "$packages_file" 2>/dev/null)") + else + echo "Error: packages.yml not found." + return 1 + fi for package in "${gentoo_packages[@]}"; do if [ "$package" != "" ]; then if ! equery list "$package" &>/dev/null; then -- cgit v1.2.3