Update dockcross

Fixed CFG_FILE not referring to the variable $CFG_FILE.
This commit is contained in:
Nadav 2018-07-11 09:27:02 +03:00 committed by GitHub
parent c6c4bc078a
commit 9572d88a7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ fi
if [ -n "$UBUNTU_ON_WINDOWS" ]; then
WSL_ROOT="/mnt/"
CFG_FILE=/etc/wsl.conf
if [ -f CFG_FILE ]; then
if [ -f "$CFG_FILE" ]; then
CFG_CONTENT=$(cat $CFG_FILE | sed -r '/[^=]+=[^=]+/!d' | sed -r 's/\s+=\s/=/g')
eval "$CFG_CONTENT"
if [ -n "$root" ]; then