diff options
| author | St33v <github@f3rr3t.com> | 2018-04-09 11:14:34 +1000 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2018-04-09 11:14:34 +1000 |
| commit | e6bbf9c3e5df9497f4cacc6c0a14ac779d8810fc (patch) | |
| tree | 0f2cf541a60ef44787f62b715b51580843599cf8 /editpix.sh | |
| parent | 04ac1a16a04a270b7538c6c4361596928c824d1b (diff) | |
create camlist as an array, for consistency with carport script
Diffstat (limited to 'editpix.sh')
| -rwxr-xr-x | editpix.sh | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |
