From e6bbf9c3e5df9497f4cacc6c0a14ac779d8810fc Mon Sep 17 00:00:00 2001 From: St33v Date: Mon, 9 Apr 2018 11:14:34 +1000 Subject: create camlist as an array, for consistency with carport script --- editpix.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'editpix.sh') 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 -- cgit v1.3