Skip to content

Commit

Permalink
change text file handling to accept both line end variants
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPawn committed May 23, 2016
1 parent 396e43b commit 0fa92c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tffs/counter_to_tffs
Expand Up @@ -49,7 +49,7 @@ trap "rm -r $tmpdir 2>/dev/null" EXIT HUP
#
##################################################################################
mkdir -p $tmpdir
sed -e "s|^\([^ ]*\)[ ]*\(.*\)\r\+$|name=\"\1\" value=\"\2\"|" >$cntfile
sed -e "s|^\([^ ]*\)[ ]*\([^\r]*\)\r\?$|name=\"\1\" value=\"\2\"|" >$cntfile
##################################################################################
#
# process environment file
Expand Down
2 changes: 1 addition & 1 deletion tffs/environment_to_tffs
Expand Up @@ -62,7 +62,7 @@ trap "rm -r $tmpdir 2>/dev/null" EXIT HUP
#
##################################################################################
mkdir -p $tmpdir
sed -e "s|^\([^ \t]*\)[ \t]*\(.*\)\r\+$|name=\"\1\" value=\"\2\"|" >$envfile
sed -e "s|^\([^ \t]*\)[ \t]*\([^\r]*\)\r\?$|name=\"\1\" value=\"\2\"|" >$envfile
##################################################################################
#
# process environment file
Expand Down

0 comments on commit 0fa92c9

Please sign in to comment.