From a1e0777f47e42cc060436393fe47e0d58c837915 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 4 Nov 2026 21:07:38 +0100 Subject: scripts/build.sh: Really only delete symlinks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I have no idea what I was thinking with the previous `if` conditions. They might be a Chesterton’s Fence, but it works in my computer. --- scripts/build.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/build.sh b/scripts/build.sh index 2bbb00f1..b311eb65 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -21,12 +21,8 @@ build_system() { } remove_symlink() { link="$1" - if [ -s "$link" ]; then + if [ -L "$link" ]; then rm "$link" - elif ! [ -e "$link" ]; then - rm "$link" || { - : "Ignore not existing files" - } else echo "ERROR: '$link' is not a symlink. Not removing it." 1>&2 exit 1 -- cgit v1.3.1