Skip to content

Commit

Permalink
Workaround for MSYS
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1nksm committed Feb 15, 2020
1 parent 0dad4aa commit 5be791a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/general.sh
Expand Up @@ -47,6 +47,12 @@ shellspec_constants() {
"
# shellcheck disable=SC2059
eval "$(printf "$SHELLSPEC_EVAL")"

# Workaround: Variable CR is empty on MSYS
if eval "[ \${#${1}CR} -eq 0 ] &&:"; then
set -- "$1" "$(printf '\015')"
eval "${1}CR=\$2"
fi
}

shellspec_constants SHELLSPEC_
Expand Down

0 comments on commit 5be791a

Please sign in to comment.