From b291be775847b4f51991604ff1c4e99334b576c2 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 10 Nov 2026 12:00:19 +0200 Subject: fix(make): Skip empty file on directory iterations Prevents bottomless recursion when a dir is empty --- make | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'make') diff --git a/make b/make index ae424fe..110ef88 100755 --- a/make +++ b/make @@ -24,6 +24,8 @@ no_overwrite= __merge_link() { while read -r f do + [ -z "$f" ] && continue + # Output file doesn't exist -> Create link # This is also true on broken symlinks if [ ! -e "$2/$f" ] @@ -92,6 +94,8 @@ __merge_link() { mkdir "$2/$f" while read -r ff do + [ -z "$ff" ] && continue + ln -s "$real/$ff" "$2/$f/$ff" done < Remove it # We're assuming this directory was created by the script and/or the user # will not care for empty dirs -- cgit v1.3.1-26-gb76a