diff --git a/scripts/export-config-values.sh b/scripts/export-config-values.sh index d85f8c8..8b397a8 100644 --- a/scripts/export-config-values.sh +++ b/scripts/export-config-values.sh @@ -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')