Browse Source

Update _cmd_build

change read config logic
pull/50/head
Gorgone 4 years ago
committed by GitHub
parent
commit
0c225a5c54
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      support/functions/_cmd_build

24
support/functions/_cmd_build

@ -126,20 +126,18 @@ _cmd_build(){
done done
#change default oscam CONF_DIR #change default oscam CONF_DIR
if [ ! "$CUSTOM_CONFDIR" == "not_set" ] if [ "$CUSTOM_CONFDIR" == "not_set" ] && [ "$_oscamconfdir_custom" == "not_set" ];
then then
CONFDIR="$CUSTOM_CONFDIR" CONFDIR="$_oscamconfdir_default"
cdtag="${r_l}custom CONF_DIR=$CONFDIR (via commandline)" cdtag="CONF_DIR=$CONFDIR"
else elif [ ${#_oscamconfdir_custom} -gt 4 ];
oc_size=${#_oscamconfdir_custom} then
if [ "$oc_size" -gt "4" ] CONFDIR="$_oscamconfdir_custom"
then cdtag="${r_l}custom CONF_DIR=$CONFDIR (via toolchain.cfg)"
CONFDIR="$_oscamconfdir_custom" elif [ ${#CUSTOM_CONFDIR} -gt 4 ];
cdtag="${r_l}custom CONF_DIR=$CONFDIR (via toolchain.cfg)" then
else CONFDIR="$CUSTOM_CONFDIR"
CONFDIR="$_oscamconfdir_default" cdtag="${r_l}custom CONF_DIR=$CONFDIR (via commandline)"
cdtag="CONF_DIR=$CONFDIR"
fi
fi fi
printf "$y_l\n | set : ${cdtag}$w_l" printf "$y_l\n | set : ${cdtag}$w_l"

Loading…
Cancel
Save