From e31413162216a05b2b26c48cb694c06a5811e41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Fri, 15 Mar 2024 22:56:38 +0100 Subject: [PATCH] Update zrep script to display a newline before "No packages installed" message. Add newline character before the message to improve readability. --- zrep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zrep b/zrep index da9fe70..873d5e1 100755 --- a/zrep +++ b/zrep @@ -301,7 +301,7 @@ function zrep_list_installed_packages() { # Check if installed.json exists and is not empty if [[ ! -s "${installed_json}" ]]; then - zrep_msg info "No packages installed." + zrep_msg info "\nNo packages installed." return fi @@ -310,7 +310,7 @@ function zrep_list_installed_packages() { # Check if the JSON file is effectively empty ({} or []) if jq -e 'if type == "object" then . == {} elif type == "array" then . == [] else false end' "${installed_json}" >/dev/null; then - zrep_msg info "No packages installed." + zrep_msg info "\nNo packages installed." return fi