diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-06-20 17:56:19 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-06-20 17:56:19 +0200 |
| commit | c39a94ba538d2765cb686a25aeeecbe2d91c6e03 (patch) | |
| tree | b195bf41ba3094abe14429972653e649238ee888 | |
| parent | f1b7a385c24d73b1c2622000b3431af8cf59f283 (diff) | |
| download | dotfiles-c39a94ba538d2765cb686a25aeeecbe2d91c6e03.tar.gz dotfiles-c39a94ba538d2765cb686a25aeeecbe2d91c6e03.zip | |
Testing
| -rwxr-xr-x | install.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
