Fix missing '' in add-cleanup docs
This one is a bit confusing since these docs document a nix multi-line
string within a multi-line string, *and* there is a bash interpolation
within. We want the docs to render as `if [ -e "''${TMPFILE-}" ]`, since
the docs are within a multi-line string.
Sorry in advance for anyone attempting to parse this in the nix source
code instead of the docs website :(.
This commit is contained in:
parent
fa989aa4fc
commit
cd825bf411
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ in rec {
|
|||
do-something "$TMP_FILE"
|
||||
${"''"})
|
||||
(add-cleanup ${"''"}
|
||||
if [ -e "''${TMP_FILE-}" ]; then
|
||||
if [ -e "${"''"}''${TMP_FILE-}" ]; then
|
||||
rm "$TMP_FILE"
|
||||
fi
|
||||
${"''"})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue