Switch config export script to get config file as argument
This commit is contained in:
parent
ef5c7d03cc
commit
89701ca893
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
CONFIG_FILE=/boot/hydrophonitor/configuration/hydrophonitor-config.txt
|
CONFIG_FILE=$1
|
||||||
|
|
||||||
export $(grep -v '^#' $CONFIG_FILE | xargs -d '\n')
|
export $(grep -v '^#' $CONFIG_FILE | tr -d '[:space:]' | xargs -d '\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user