Permalink
Browse files

Let the script try and find the image in the cache if there is one.

  • Loading branch information...
1 parent 8d79adb commit a2772c8b070d4a23eeb6cf08b6d89b6fe77f8a01 @galthaus galthaus committed Jan 14, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 build_sledgehammer.sh
View
@@ -39,6 +39,11 @@
[[ -f build-crowbar.conf ]] && \
. "build-crowbar.conf"
+# Location for caches that should not be erased between runs
+[[ $CACHE_DIR ]] || CACHE_DIR="$HOME/.crowbar-build-cache"
+
+[[ $CENTOS_ISO ]] || CENTOS_ISO="$CACHE_DIR/iso/CentOS-5.7-x86_64-bin-DVD-1of2.iso"
+
die() { echo "$@"; exit 1; }
shopt -s extglob

0 comments on commit a2772c8

Please sign in to comment.