summaryrefslogtreecommitdiffstats
path: root/bin/snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/snapshot')
-rwxr-xr-xbin/snapshot7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/snapshot b/bin/snapshot
index c987682..a0b5fff 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -173,7 +173,12 @@ CONFIGURE="./configure $HDF4LIB $OP_CONFIGURE"
# Execute the requests
snapshot=yes
-H5VERSION=hdf5
+if [ -f bin/snapshot_version ]; then
+ . bin/snapshot_version
+else
+ H5VERSION=hdf5
+fi
+
BASEDIR=${HOME}/snapshots-${H5VERSION}
CURRENT=${BASEDIR}/current
PREVIOUS=${BASEDIR}/previous