Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maximelaboisson committed Aug 9, 2024
1 parent 5349cf9 commit 35c1c83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parse-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ load_dir() {
# Replaces underscores with dots

# $2, is wether ot not to remap `_` to `.` in the key
KEY=$(echo "$FILENAME")
if [ "$2" = true ]; then
KEY=$(echo "$FILENAME" | tr '_' '.')
KEY=$(echo "$KEY" | tr '_' '.')
fi

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

0 comments on commit 35c1c83

Please sign in to comment.