use mktemp

This commit is contained in:
Thomas Levine 2016-02-28 22:43:17 +00:00
parent 90494385e2
commit 9d60edae83
5 changed files with 6 additions and 13 deletions

View File

@ -1,3 +1 @@
#!/bin/sh
echo setup has run >> .log
echo setup has run >> $log

View File

@ -1,3 +1,3 @@
#!/bin/sh
[ $(grep -c 'setup has run' .log) -gt '2' ]
[ $(grep -c 'setup has run' $log) -gt '2' ]

View File

@ -1,4 +1,3 @@
#!/bin/sh
echo > .log
echo setup_dir has run >> .log
export log=$(mktemp)
> $log
echo setup_dir has run >> $log

View File

@ -1,3 +1 @@
#!/bin/sh
echo teardown has run >> .log

View File

@ -1,3 +1 @@
#!/bin/sh
rm .log
rm $log