bash: generate files using writeShellScript

This ensures that the generated file is syntactically valid.

Issue #2015
This commit is contained in:
Robert Helgesson 2021-05-18 00:46:04 +02:00
parent 794d08a1d8
commit e9b7d12e06
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
5 changed files with 19 additions and 28 deletions

View file

@ -16,7 +16,11 @@ with lib;
assertFileExists home-files/.bash_logout
assertFileContent \
home-files/.bash_logout \
${./logout-expected.txt}
${
pkgs.writeShellScript "logout-expected" ''
clear-console
''
}
'';
};
}