From 89701ca893867144cd6520900b589d8c96fc86e2 Mon Sep 17 00:00:00 2001 From: Satu Koskinen Date: Tue, 11 Oct 2022 09:19:50 +0300 Subject: [PATCH] Switch config export script to get config file as argument --- scripts/export-config-values.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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')