From d139e6793a9c142849d564241eea54ce3cbcf78e Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Thu, 5 Dec 2024 11:17:49 -0500 Subject: [PATCH] fix: print message in leaf_error --- leaf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/leaf b/leaf index 7cad7bd..47afc66 100755 --- a/leaf +++ b/leaf @@ -115,6 +115,9 @@ leaf_compress_man_pages() { } leaf_error() { + if [ -n "${MESSAGE}" ]; then + echo -e "${MESSAGE}" + fi echo -e "${RED_COLOR}* $1${CLEAR_COLOR}" && exit 1 }