Collapsed unnecessarily verbose command combo

When a path is passed to the `pushd` command, bash will push your _current_ directory to the top of the stack and then `cd` to whatever location you provided. There is no need to use two separate commands.
This commit is contained in:
storedbox 2015-02-13 21:35:51 -05:00
parent b5749e9855
commit 23e7c21f5f

View file

@ -38,8 +38,7 @@ sudo yum install curl freeglut-devel libtool gcc-c++ libXi-devel \
freetype-devel mesa-libGL-devel glib2-devel libX11-devel libXrandr-devel gperf \
fontconfig-devel cabextract ttmkfdir python python-virtualenv expat-devel \
rpm-build openssl-devel cmake bzip2-devel libXcursor-devel
pushd .
cd /tmp
pushd /tmp
wget http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec
rpmbuild -bb msttcorefonts-2.5-1.spec
sudo yum install $HOME/rpmbuild/RPMS/noarch/msttcorefonts-2.5-1.noarch.rpm