Skip to content

Commit 35c1c83

Browse files
fix
1 parent 5349cf9 commit 35c1c83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parse-config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ load_dir() {
2222
# Replaces underscores with dots
2323

2424
# $2, is wether ot not to remap `_` to `.` in the key
25+
KEY=$(echo "$FILENAME")
2526
if [ "$2" = true ]; then
26-
KEY=$(echo "$FILENAME" | tr '_' '.')
27+
KEY=$(echo "$KEY" | tr '_' '.')
2728
fi
2829

2930
# $3, is the numbers of characters to strip in front of the key

0 commit comments

Comments
 (0)