File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ HASSIO_OPTIONSFILE=/data/options.json
7
7
if [ -f ${HASSIO_OPTIONSFILE} ]; then
8
8
CONFIG=$( grep -o ' "config_file": "[^"]*' ${HASSIO_OPTIONSFILE} | grep -o ' [^"]*$' )
9
9
echo " Using config file: ${CONFIG} "
10
-
10
+
11
11
SQLITE_FILE=$( grep -o ' "sqlite_file": "[^"]*' ${HASSIO_OPTIONSFILE} | grep -o ' [^"]*$' )
12
-
12
+
13
13
if [ ! -f " ${CONFIG} " ]; then
14
14
echo " Config not found. Please create a config under ${CONFIG} ."
15
15
echo " For details see evcc documentation at https://github.com/evcc-io/evcc#readme."
@@ -23,7 +23,10 @@ if [ -f ${HASSIO_OPTIONSFILE} ]; then
23
23
fi
24
24
fi
25
25
else
26
- if [ " $1 " = ' "evcc"' ] || expr " $1 " : ' -*' > /dev/null; then
26
+ if [ " $1 " = ' evcc' ]; then
27
+ shift
28
+ exec evcc " $@ "
29
+ elif expr " $1 " : ' -.*' > /dev/null; then
27
30
exec evcc " $@ "
28
31
else
29
32
exec " $@ "
You can’t perform that action at this time.
0 commit comments