Commit 0294cf86 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Improve file/dir existence check for Xcode backend (#8037)

parent 5e672cbe
......@@ -14,9 +14,12 @@ EchoError() {
}
AssertExists() {
RunCommand ls $1
if [ $? -ne 0 ]; then
EchoError "The path $1 does not exist"
if [[ ! -e "$1" ]]; then
if [[ -h "$1" ]]; then
EchoError "The path $1 is a symlink to a path that does not exist"
else
EchoError "The path $1 does not exist"
fi
exit -1
fi
return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment