diff options
author | Patrick Darley <patrick.darley@codethink.co.uk> | 2015-09-18 13:34:06 +0000 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-09-21 09:59:26 +0100 |
commit | 9e4bfa64a9f5140aaaa08e0113baac7a23b58499 (patch) | |
tree | a4c3c61ddb2d0b5915b81e790d06afd329b9cc90 /archive_an_image.sh | |
parent | 5e2325f5424d224a4a5173860a5881c52b9ce359 (diff) | |
download | buildslave-scripts-9e4bfa64a9f5140aaaa08e0113baac7a23b58499.tar.gz |
Fix the archive path problem. Should work now.
Diffstat (limited to 'archive_an_image.sh')
-rwxr-xr-x | archive_an_image.sh | 2 |
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 |