From 6347687c6c54085453f6ed1005d3107413fa47c5 Mon Sep 17 00:00:00 2001 From: WXbet Date: Mon, 20 Jul 2020 14:31:26 +0200 Subject: [PATCH] Fix using _oscamconfdir_custom variable on cmd_build this variable handling was different fom gui_build --- support/functions/_cmd_build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/support/functions/_cmd_build b/support/functions/_cmd_build index 385f7c1..6fc94d2 100644 --- a/support/functions/_cmd_build +++ b/support/functions/_cmd_build @@ -123,10 +123,11 @@ _cmd_build(){ done #change default oscam CONF_DIR -if [ ! "$CUSTOM_CONFDIR" == "not_set" ] +oc_size=${#_oscamconfdir_custom} +if [ "$oc_size" -gt "4" ] then - CONFDIR="$CUSTOM_CONFDIR" - printf $w_l" | set : "$r_l"custom CONF_DIR=$CONFDIR"$w_l + CONFDIR="$_oscamconfdir_custom" + printf "$y_l\n | set :$r_l custom CONF_DIR=$CONFDIR$w_l" else CONFDIR="$_oscamconfdir_default" fi