Nix Language: Tips & Tricks: Difference between revisions
imported>Fricklerhandwerk No edit summary |
imported>Mateusauler m To wrtie text to a file by redirecting the output of a shell utility, `echo` should be used, instead of `cat`. |
||
| Line 133: | Line 133: | ||
in writeScript "update-foo.sh" '' | in writeScript "update-foo.sh" '' | ||
echo "updating foo.txt!" | echo "updating foo.txt!" | ||
echo "additional new data" >> ${lib.escapeShellArg textdata} | |||
'' | '' | ||
</syntaxHighlight> | </syntaxHighlight> | ||