Skip to content

Commit

Permalink
Only change results directory if it exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed May 24, 2014
1 parent f7e1c98 commit 6e49682
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions utils/dc
Expand Up @@ -119,9 +119,11 @@ case "$1" in
docker.io wait "$name"
docker.io logs "$name"
sudo docker.io cp "$name:/staging" "$name"
sudo chmod -R 755 "$name"
sudo find "$name" -type f -exec chmod 644 {} \;
sudo chown -R pjcj:pjcj "$name"
if [ -d "$name" ]; then
sudo chmod -R 755 "$name"
sudo find "$name" -type f -exec chmod 644 {} \;
sudo chown -R pjcj:pjcj "$name"
fi
docker.io rm "$name"
;;
"options")
Expand Down

0 comments on commit 6e49682

Please sign in to comment.