writeTextFile: use printf instead of echo

This is safer in the case of large strings since it doesn't trigger
"Argument list too long" errors.
This commit is contained in:
Stefan Frijters
2026-05-01 16:12:11 +02:00
parent dbebdd5721
commit a40068e042
@@ -146,7 +146,7 @@ rec {
if [ -e "$textPath" ]; then
mv "$textPath" "$target"
else
echo -n "$text" > "$target"
printf "%s" "$text" > "$target"
fi
if [ -n "$executable" ]; then