~voidraven/s4

eebd36966d4bd35bc1050026171b6e55c5fcc2c8 — lotus 2 years ago 969ff41
fixed bug with config storage path, fixed bug with recreating tree attempt on config rerun, version bump
1 files changed, 6 insertions(+), 3 deletions(-)

M s4ctl.sh
M s4ctl.sh => s4ctl.sh +6 -3
@@ 6,7 6,7 @@
#
# This file the main controller utility

VERSION="0.1.2"
VERSION="0.1.3"

GBL_ERROR_MSG=""



@@ 104,8 104,11 @@ fun_get_input () {
	    echo "#!/bin/sh" > ~/.s4/config
	    echo "S4_CAMERAS=$L_CAMERAS" >> ~/.s4/config
	    echo "S4_REZ=$L_REZ" >> ~/.s4/config
	    echo "S4_STORAGE=$STORAGE" >> ~/.s4/config
	    fun_make_tree $L_CAMERAS $L_STORAGE
	    echo "S4_STORAGE=$L_STORAGE" >> ~/.s4/config
	    # check if s4 folder exists in user provided path
	    if ! [ -d "$L_STORAGE/s4" ] ; then
		fun_make_tree $L_CAMERAS $L_STORAGE
	    fi
	    fun_edit_templates $L_CAMERAS $L_REZ $L_STORAGE $L_FRAMER8
	    echo "OK"
	    unset L_CAMERAS L_REZ L_STORAGE L_FRAMER8 L_WRITE