aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/backup-sims.sh
diff options
context:
space:
mode:
authoronefang2019-09-11 16:36:50 +1000
committeronefang2019-09-11 16:36:50 +1000
commit50cd1ffd32f69228e566f2b0b89f86ea0d9fe489 (patch)
tree52f2ab0c04f1a5d7d6ac5dc872981b4b156447e7 /scripts/backup-sims.sh
parentRenamed branch to SledjChisl. (diff)
parentBump to release flavour, build 0. (diff)
downloadopensim-SC-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.zip
opensim-SC-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.gz
opensim-SC-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.bz2
opensim-SC-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.xz
Merge branch 'SledjChisl'
Diffstat (limited to 'scripts/backup-sims.sh')
-rwxr-xr-xscripts/backup-sims.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/backup-sims.sh b/scripts/backup-sims.sh
index b14acca..06cb780 100755
--- a/scripts/backup-sims.sh
+++ b/scripts/backup-sims.sh
@@ -5,10 +5,9 @@ getPrgDir
5 5
6for i in $(seq -w 1 99) 6for i in $(seq -w 1 99)
7do 7do
8 j=$(num2name ${i}) 8 if [ -e "${PRGDIR}/../../config/sim${i}" ]
9 if [ -e "${PRGDIR}/../config/${j}" ]
10 then 9 then
11 pushd ${PRGDIR}/../config/${j} >/dev/null 10 pushd ${PRGDIR}/../../config/sim${i} >/dev/null
12 # Find out the size of the last backup, base our later sleep on that, but do it now before backup-sim packs it away. 11 # Find out the size of the last backup, base our later sleep on that, but do it now before backup-sim packs it away.
13 sizeSleep=`sleepPerSize o "$(getSimName ${i})"` 12 sizeSleep=`sleepPerSize o "$(getSimName ${i})"`
14 ./backup-sim 13 ./backup-sim