Skip to content

Commit

Permalink
protect from comment and trailing whitespace characters
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfrantz committed Dec 10, 2024
1 parent f26f05b commit 4e4862e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bash/force-level2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ function get_parameter(){
exit 1
else
VALUE=$(echo "$LINE" | sed 's/.* *= *//g')
VALUE=$(echo "$VALUE" | sed 's/ *$//g')
VALUE=$(echo "$VALUE" | sed 's/#.*//g')
VALUE=$(echo "$VALUE" | sed 's/[[:space:]]*$//g')
fi

echo "$VALUE"
Expand Down
2 changes: 1 addition & 1 deletion misc/force-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.7.12-dev:::2024-11-28_11:43:39
3.7.12-dev:::2024-12-10_07:48:51

0 comments on commit 4e4862e

Please sign in to comment.