examples/scripts/download.sh: pushd/popd are unnecessary
authorMaximilian Gaß <mxey@ghosthacking.net>
Wed, 3 Jun 2009 19:13:50 +0000 (21:13 +0200)
committerMaximilian Gaß <mxey@ghosthacking.net>
Sat, 6 Jun 2009 18:20:24 +0000 (20:20 +0200)
there is nothing affected by the directory of that shell

examples/scripts/download.sh

index 0d38d3c..d87335f 100755 (executable)
@@ -7,10 +7,9 @@ WGET="wget --user-agent=Firefox"
 
 if [[ $8 =~ .*(.torrent) ]] 
 then
-    pushd $HOME
+    cd $HOME
     $WGET $8
 else
-    pushd $HOME
+    cd $HOME
     $WGET $8
 fi
-popd