mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 07:31:01 +02:00
load_environment_var: Strip double quotes
To allow double quoted values to be processed correctly. Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
parent
1c16018906
commit
aa259bf685
@ -259,7 +259,7 @@ load_environment_var() {
|
|||||||
local file="$1" name value
|
local file="$1" name value
|
||||||
shift
|
shift
|
||||||
for name in "$@"; do
|
for name in "$@"; do
|
||||||
value=$(grep "^${name}=" "${file}")
|
value=$(grep "^${name}=" "${file}" | sed 's|"||g')
|
||||||
export "${value}"
|
export "${value}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user