Permalink
Browse files

pushd/popd errors under dash in -exterminate

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...
1 parent 3f4a7fd commit 783668afb00729510f6d15c635818f276be544c5 @CarbonLifeForm CarbonLifeForm committed Dec 15, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 CA.sh
View
@@ -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 $*"

0 comments on commit 783668a

Please sign in to comment.