use mktemp
This commit is contained in:
parent
90494385e2
commit
9d60edae83
|
@ -1,3 +1 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo setup has run >> .log
|
||||
echo setup has run >> $log
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ $(grep -c 'setup has run' .log) -gt '2' ]
|
||||
[ $(grep -c 'setup has run' $log) -gt '2' ]
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo > .log
|
||||
echo setup_dir has run >> .log
|
||||
export log=$(mktemp)
|
||||
> $log
|
||||
echo setup_dir has run >> $log
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo teardown has run >> .log
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm .log
|
||||
rm $log
|
||||
|
|
Loading…
Reference in New Issue
Block a user