Merge pull request #187 from timcharper/patch-1

OS X compatible line-ending stripping
This commit is contained in:
eugene yokota 2017-09-26 18:32:22 -04:00 committed by GitHub
commit bc00a5490c
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ process_my_args () {
loadConfigFile() {
# Make sure the last line is read even if it doesn't have a terminating \n
cat "$1" | sed '/^\#/d;s/\r$//' | while read -r line || [[ -n "$line" ]]; do
cat "$1" | sed $'/^\#/d;s/\r$//' | while read -r line || [[ -n "$line" ]]; do
eval echo $line
done
}