aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-06 00:37:06 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 00:55:52 +0100
commitf6f4e1c61f4865f7907b366424d62a91039c60d4 (patch)
treea9fe81671cee8f488a41ac316bcd92ccf044eb4a
parent{inputs.nix,unflake.nix}: Update (diff)
downloadnixos-server-f6f4e1c61f4865f7907b366424d62a91039c60d4.zip
scripts/build.sh: Don't fail if the result symlinks don't exist
-rwxr-xr-xscripts/build.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index b311eb6..6c3d246 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -23,6 +23,8 @@ remove_symlink() {
link="$1"
if [ -L "$link" ]; then
rm "$link"
+ elif ! [ -e "$link" ]; then
+ : "Not existing file is also okay"
else
echo "ERROR: '$link' is not a symlink. Not removing it." 1>&2
exit 1