leave temp dir
authorHanno <hanno@gentoo.org>
Sun, 12 Oct 2014 17:29:12 +0000 (19:29 +0200)
committerHanno <hanno@gentoo.org>
Sun, 12 Oct 2014 17:29:12 +0000 (19:29 +0200)
bashcheck

index d83c8e3..97af370 100755 (executable)
--- a/bashcheck
+++ b/bashcheck
@@ -45,13 +45,14 @@ else
        good "CVE-2014-6271 (original shellshock)"
 fi
 
-cd $tmpdir
+pushd $tmpdir > /dev/null
 env x='() { function a a>\' $bash -c echo 2>/dev/null > /dev/null
 if [ -e echo ]; then
        warn "CVE-2014-7169 (taviso bug)"
 else
        good "CVE-2014-7169 (taviso bug)"
 fi
+popd > /dev/null
 
 $($bash -c "true $(printf '<<EOF %.0s' {1..80})" 2>$tmpdir/bashcheck.tmp)
 ret=$?