Skip to content

Commit

Permalink
pushd/popd errors under dash in -exterminate
Browse files Browse the repository at this point in the history
it turns out that popd and pushd are bash enhancements. Replaced popd
and pushd in -exterminate with a simple pwd/cd + variable solution.
  • Loading branch information
CarbonLifeForm committed Dec 15, 2011
1 parent 3f4a7fd commit 783668a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CA.sh
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,11 @@ case $1 in
exit $RET
;;
-exterminate)
pushd ${CATOP}
currdir=$(pwd)
cd ${CATOP}
ls -A | egrep -v '(CA\.sh|openssl\.cnf|\.git)' | xargs rm -rf
popd
cd $currdir
unset currdir
;;
*)
echo "Command: $0 $*"
Expand Down

0 comments on commit 783668a

Please sign in to comment.