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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user