[hopem,r=]
Ensure mktmp dir is deleted when no longer needed. Closes-Bug: 1467938
This commit is contained in:
parent
9624ea33a9
commit
572e558549
@ -7,9 +7,9 @@ task
|
|||||||
script
|
script
|
||||||
devs="{{ devs }}"
|
devs="{{ devs }}"
|
||||||
mtu="{{ mtu }}"
|
mtu="{{ mtu }}"
|
||||||
|
if [ -n "$mtu" ]; then
|
||||||
tmpfile=`mktemp`
|
tmpfile=`mktemp`
|
||||||
echo $devs > $tmpfile
|
echo $devs > $tmpfile
|
||||||
if [ -n "$mtu" ]; then
|
|
||||||
while read -r dev; do
|
while read -r dev; do
|
||||||
[ -n "$dev" ] || continue
|
[ -n "$dev" ] || continue
|
||||||
rc=0
|
rc=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user