commit 8e5f3e29a7476ce90a916daf847862076fa6919f
parent 46769563b703adeefd61d7f591ea8faba41cd9b9
Author: Daniel Barlow <dan@telent.net>
Date: Sat, 12 Apr 2025 23:39:13 +0100
don't write service properties with null values
because serialisation causes them to become empty strings
which are not null
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgs/liminix-tools/services/builder.sh b/pkgs/liminix-tools/services/builder.sh
@@ -3,7 +3,7 @@ mkdir -p $out/${name}
writepath(){
mkdir -p $(dirname $1)
- echo $2 > $1
+ if test -n "$2" ; then ( echo $2 > $1 ) ;fi
}
if test -n "$propertiesText"; then
mkdir $out/.properties