summaryrefslogtreecommitdiff
path: root/archive_an_image.sh
diff options
context:
space:
mode:
authorPatrick Darley <patrick.darley@codethink.co.uk>2015-09-18 13:34:06 +0000
committerWill Holland <william.holland@codethink.co.uk>2015-09-21 09:59:26 +0100
commit9e4bfa64a9f5140aaaa08e0113baac7a23b58499 (patch)
treea4c3c61ddb2d0b5915b81e790d06afd329b9cc90 /archive_an_image.sh
parent5e2325f5424d224a4a5173860a5881c52b9ce359 (diff)
downloadbuildslave-scripts-9e4bfa64a9f5140aaaa08e0113baac7a23b58499.tar.gz
Fix the archive path problem. Should work now.
Diffstat (limited to 'archive_an_image.sh')
-rwxr-xr-xarchive_an_image.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive_an_image.sh b/archive_an_image.sh
index 7bfc71d..c283057 100755
--- a/archive_an_image.sh
+++ b/archive_an_image.sh
@@ -7,7 +7,7 @@ archive_dir=/archive/images
# Create am archive directory based on the img date
img_date=`date -r "$img_path" +"%y-%m-%d_%H%M"`
-archive_path="$archive_dir$img_date"
+archive_path="$archive_dir/$img_date"
mkdir -p "$archive_path"
# Move the img to the archive - Copy for now due to tlsa scripts