Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 1592c7cb authored by Robert Nelson's avatar Robert Nelson
Browse files

publish, use mv instead of cp, cut down on server space


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 03cd5497
Branches
Tags
No related merge requests found
......@@ -93,13 +93,15 @@ copy_img_to_mirror () {
fi
if [ -d ${mirror_dir}/${time}/\${blend}/ ] ; then
if [ -f \${wfile}.bmap ] ; then
cp -v \${wfile}.bmap ${mirror_dir}/${time}/\${blend}/
mv -v \${wfile}.bmap ${mirror_dir}/${time}/\${blend}/
sync
fi
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${wfile}.img.zx ] ; then
cp -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
mv -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
sync
if [ -f \${wfile}.img.xz.job.txt ] ; then
cp -v \${wfile}.img.xz.job.txt ${mirror_dir}/${time}/\${blend}/
mv -v \${wfile}.img.xz.job.txt ${mirror_dir}/${time}/\${blend}/
sync
fi
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${wfile}.img && sha256sum \${wfile}.img.xz > \${wfile}.img.xz.sha256sum &
......
......@@ -93,12 +93,15 @@ copy_img_to_mirror () {
fi
if [ -d ${mirror_dir}/${time}/\${blend}/ ] ; then
if [ -f \${wfile}.bmap ] ; then
cp -v \${wfile}.bmap ${mirror_dir}/${time}/\${blend}/
mv -v \${wfile}.bmap ${mirror_dir}/${time}/\${blend}/
sync
fi
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${wfile}.img.zx ] ; then
cp -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
mv -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
sync
if [ -f \${wfile}.img.xz.job.txt ] ; then
cp -v \${wfile}.img.xz.job.txt ${mirror_dir}/${time}/\${blend}/
mv -v \${wfile}.img.xz.job.txt ${mirror_dir}/${time}/\${blend}/
sync
fi
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${wfile}.img && sha256sum \${wfile}.img.xz > \${wfile}.img.xz.sha256sum &
......
......@@ -74,13 +74,15 @@ copy_img_to_mirror () {
fi
if [ -d ${mirror_dir}/${time}/\${blend}/ ] ; then
if [ -f \${wfile}.bmap ] ; then
cp -v \${wfile}.bmap ${mirror_dir}/${time}/\${blend}/
mv -v \${wfile}.bmap ${mirror_dir}/${time}/\${blend}/
sync
fi
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${wfile}.img.zx ] ; then
cp -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
mv -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
sync
if [ -f \${wfile}.img.xz.job.txt ] ; then
cp -v \${wfile}.img.xz.job.txt ${mirror_dir}/${time}/\${blend}/
mv -v \${wfile}.img.xz.job.txt ${mirror_dir}/${time}/\${blend}/
sync
fi
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${wfile}.img && sha256sum \${wfile}.img.xz > \${wfile}.img.xz.sha256sum &
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment