aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/backup-inventories.sh
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-11-27 23:51:59 +1000
committerDavid Walter Seikel2016-11-27 23:51:59 +1000
commitc0ff56729a59dc30589de6af6120d825fbaa8cc3 (patch)
tree1c7e2f842548a5c9fef566d2045f3ad8aac603cb /scripts/backup-inventories.sh
parentWhite space and typo clean ups. (diff)
downloadopensim-SC-c0ff56729a59dc30589de6af6120d825fbaa8cc3.zip
opensim-SC-c0ff56729a59dc30589de6af6120d825fbaa8cc3.tar.gz
opensim-SC-c0ff56729a59dc30589de6af6120d825fbaa8cc3.tar.bz2
opensim-SC-c0ff56729a59dc30589de6af6120d825fbaa8cc3.tar.xz
Break out common script bits into their own file.
Diffstat (limited to 'scripts/backup-inventories.sh')
-rwxr-xr-xscripts/backup-inventories.sh17
1 files changed, 2 insertions, 15 deletions
diff --git a/scripts/backup-inventories.sh b/scripts/backup-inventories.sh
index 30f8ac6..1d753eb 100755
--- a/scripts/backup-inventories.sh
+++ b/scripts/backup-inventories.sh
@@ -1,20 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2 2
3# Figure out where we are, most of this mess is to troll through soft links. 3source common.sh
4PRG="$0" 4getPrgDir
5while [ -h "${PRG}" ] ; do
6 ls=$(ls -ld "${PRG}")
7 link=`expr "${ls}" : '.*-> \(.*\)$'`
8 if expr "${link}" : '.*/.*' > /dev/null; then
9 PRG="${link}"
10 else
11 PRG=$(dirname "${PRG}")/"${link}"
12 fi
13done
14PRGDIR=$(dirname "${PRG}")
15pushd ${PRGDIR} >/dev/null
16PRGDIR=$(pwd)
17popd >/dev/null
18 5
19# Get the database credentials. 6# Get the database credentials.
20declare -A creds 7declare -A creds