summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2014-06-03 09:14:12 -0400
committerBill Peck <bpeck@redhat.com>2014-06-03 09:14:12 -0400
commitd0e83d7dfd12c7fbd363b0d0d5f7da0144b466e0 (patch)
treee4ae1325b6a1f77ea128b122b8fd82170008dc6a /misc
parent39393a8555e0f170fad7a14e966a806a4d2a325b (diff)
downloadtests-d0e83d7dfd12c7fbd363b0d0d5f7da0144b466e0.tar.gz
tests-d0e83d7dfd12c7fbd363b0d0d5f7da0144b466e0.tar.xz
tests-d0e83d7dfd12c7fbd363b0d0d5f7da0144b466e0.zip
Would help to define the tmpfile first
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/ipv6/info/collect.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/ipv6/info/collect.sh b/misc/ipv6/info/collect.sh
index 7191a55..5413bfc 100755
--- a/misc/ipv6/info/collect.sh
+++ b/misc/ipv6/info/collect.sh
@@ -1,11 +1,13 @@
#!/bin/sh
+tmpfile=$(mktemp)
hostname > $tmpfile
-tmpfile=$(mktemp)
for dev in $(ip -6 -o a s | grep -v lo | awk '{print $2}'); do
ip -0 -o a s $dev >> $tmpfile
ip -6 -o a s $dev >> $tmpfile
done
rstrnt-report-result --no-plugins --outputfile $tmpfile $RSTRNT_TASKNAME PASS 0
+
+rm -f $tmpfile