Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 783668afb00729510f6d15c635818f276be544c5 1 parent 3f4a7fd
CarbonLifeForm CarbonLifeForm authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 CA.sh
6 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 $*"
Please sign in to comment.
Something went wrong with that request. Please try again.