From cec88c7b687eeefd12f60774de0db854b1ec9d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20Healy?= Date: Mon, 20 Apr 2026 16:57:39 +0100 Subject: [PATCH] More error handling. --- git-portfolio | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/git-portfolio b/git-portfolio index 1b62853..cf4b478 100755 --- a/git-portfolio +++ b/git-portfolio @@ -165,8 +165,9 @@ EOF EOF )" done < <(my_curl) -portfolio_index="$( -cat < "$tmp_portfolio/index.html" + )" + echo "$portfolio_index" > "$tmp_portfolio/index.html" +fi if [ -d "$directory" ]; then if [ "$(du -sb "$directory" | cut -f1)" -gt $((1024 * 1024 * 400)) ]; then echo "Error: Directory '$directory' contains more than 400MB of data. Exiting to prevent data loss."