Skip to content

Commit

Permalink
Make DEST_DIR a temporary directory
Browse files Browse the repository at this point in the history
saves the problem of creating it and/or cleaning it out
  • Loading branch information
moritz committed May 31, 2015
1 parent 17d94d5 commit 558293a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion util/update-design.perl6.org.sh
Expand Up @@ -6,7 +6,7 @@ ulimit -v 1048576
ulimit -t 600

ROOT_DIR=$HOME
DEST_DIR=$HOME/design.perl6.org-html
DEST_DIR=$(mktemp -d)
MU_DIR=$ROOT_DIR/mu
TEST_DIR=$ROOT_DIR/roast
POD_DIR="$ROOT_DIR/specs"
Expand Down Expand Up @@ -58,3 +58,7 @@ if [ -z "$NOSSH" ]
then
rsync -az --delete $DEST_DIR/ design.perl6.org@www:/var/www/design.perl6.org/
fi
if [ -z "$KEEPTMP" ]
then
rm -rf "$DEST_DIR"
fi

0 comments on commit 558293a

Please sign in to comment.