diff options
author | root | 2019-05-19 20:09:52 +1000 |
---|---|---|
committer | root | 2019-05-19 20:09:52 +1000 |
commit | 69c83920017bb1876d23e8170ef516d895d08de1 (patch) | |
tree | 14053c3bada48d25707b5f9b2f3a25ac0d2c0752 | |
parent | Building comment++ (diff) | |
download | opensim-SC-69c83920017bb1876d23e8170ef516d895d08de1.zip opensim-SC-69c83920017bb1876d23e8170ef516d895d08de1.tar.gz opensim-SC-69c83920017bb1876d23e8170ef516d895d08de1.tar.bz2 opensim-SC-69c83920017bb1876d23e8170ef516d895d08de1.tar.xz |
Add ionice to gitAR.
Diffstat (limited to '')
-rwxr-xr-x | scripts/gitAR.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gitAR.sh b/scripts/gitAR.sh index bbcc761..d988077 100755 --- a/scripts/gitAR.sh +++ b/scripts/gitAR.sh | |||
@@ -31,7 +31,7 @@ fi | |||
31 | mkdir -p ${PRGDIR}/../../backups/temp_backup${type}_${name} | 31 | mkdir -p ${PRGDIR}/../../backups/temp_backup${type}_${name} |
32 | pushd ${PRGDIR}/../../backups/temp_backup${type}_${name} >/dev/null | 32 | pushd ${PRGDIR}/../../backups/temp_backup${type}_${name} >/dev/null |
33 | if [ -f ../${name}${gar}.tar.xz ]; then | 33 | if [ -f ../${name}${gar}.tar.xz ]; then |
34 | nice -n 19 tar -xf ../${name}${gar}.tar.xz | 34 | ionice -c3 nice -n 19 tar -xf ../${name}${gar}.tar.xz |
35 | else | 35 | else |
36 | mkdir -p ${name}${gar} | 36 | mkdir -p ${name}${gar} |
37 | git init ${name}${gar} >log | 37 | git init ${name}${gar} >log |
@@ -64,7 +64,7 @@ find ../.. -maxdepth 1 -type f -name "${name}-*.${type}ar" -size '+0c' | sort | | |||
64 | # Deal with deletions in the inventory / sim, easy method, which becomes a nop for files that stay in the git add below. | 64 | # Deal with deletions in the inventory / sim, easy method, which becomes a nop for files that stay in the git add below. |
65 | git rm -fr * &>>../log #|| echo "ERROR - Could not clean git for ${file} !" >>../errors | 65 | git rm -fr * &>>../log #|| echo "ERROR - Could not clean git for ${file} !" >>../errors |
66 | if [ ! -f ../errors ]; then | 66 | if [ ! -f ../errors ]; then |
67 | nice -n 19 tar -xzf "${file}" || echo "ERROR - Could not unpack ${file} !" >>../errors | 67 | ionice -c3 nice -n 19 tar -xzf "${file}" || echo "ERROR - Could not unpack ${file} !" >>../errors |
68 | fi | 68 | fi |
69 | if [ ! -f ../errors ]; then | 69 | if [ ! -f ../errors ]; then |
70 | git add * &>>../log | 70 | git add * &>>../log |
@@ -95,7 +95,7 @@ done | |||
95 | popd >/dev/null | 95 | popd >/dev/null |
96 | 96 | ||
97 | if [ ! -f errors ]; then | 97 | if [ ! -f errors ]; then |
98 | XZ_OPT="-9e" nice -n 19 tar -c --xz ${name}${gar} -f ../${name}${gar}.tar.xz || echo "ERROR - Could not pack gitAR!" >>errors | 98 | XZ_OPT="-9e" ionice -c3 nice -n 19 tar -c --xz ${name}${gar} -f ../${name}${gar}.tar.xz || echo "ERROR - Could not pack gitAR!" >>errors |
99 | fi | 99 | fi |
100 | 100 | ||
101 | popd >/dev/null | 101 | popd >/dev/null |