aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/backup-sims.sh
diff options
context:
space:
mode:
authoronefang2019-08-13 01:00:58 +1000
committeronefang2019-08-13 01:00:58 +1000
commit8c34b5efe171e9f3b6daf3cefd319872684d121f (patch)
treead93a4632b3fa19d18700ace79a2099842869b41 /scripts/backup-sims.sh
parentRemove the left overs from the check4096 crap that is obsolete. (diff)
downloadopensim-SC_OLD-8c34b5efe171e9f3b6daf3cefd319872684d121f.zip
opensim-SC_OLD-8c34b5efe171e9f3b6daf3cefd319872684d121f.tar.gz
opensim-SC_OLD-8c34b5efe171e9f3b6daf3cefd319872684d121f.tar.bz2
opensim-SC_OLD-8c34b5efe171e9f3b6daf3cefd319872684d121f.tar.xz
Stop using num2name() in scripts.
Turns out I was feeding "01" to it, so that's why it thought things where octal, and "01" is the result we wanted anyway.
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 cadb9a2..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