summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSt33v <github@f3rr3t.com>2018-04-09 11:14:34 +1000
committerSt33v <github@f3rr3t.com>2018-04-09 11:14:34 +1000
commite6bbf9c3e5df9497f4cacc6c0a14ac779d8810fc (patch)
tree0f2cf541a60ef44787f62b715b51580843599cf8
parent04ac1a16a04a270b7538c6c4361596928c824d1b (diff)
create camlist as an array, for consistency with carport script
-rwxr-xr-xeditpix.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/editpix.sh b/editpix.sh
index b722519..beb1f1b 100755
--- a/editpix.sh
+++ b/editpix.sh
@@ -3,17 +3,20 @@
# SJP 30 Dec 2015 V1 (Copy and process photos from a cam-equipped raspi)
########### Constants ##################
+# These variables are defined in a local file "paths.config". The follwoing assignments
+# show the format for the variables.
web="example.com:/path/to/remote/camrootdir" # web server. configured in paths.config
thisdir="/path/to/cams" # this directory (on this computer) Configured in paths.config
-camlist="cam1 cam2 and_so_on" # cams to monitor
+
+# cam names in an array:
+declare -a camz=(cam1 cam2 cam3...)
+
if [ -e /usr/local/share/editpix/paths.config ]; then
. /usr/local/share/editpix/paths.config
else echo "paths.config does not exist, see readme"; exit 1
fi
########### end Consts ################
-# cam names in an array:
-declare -a camz=(${camlist})
cd ${thisdir} # root directory for uploaded pix