Improve file/dir existence check for Xcode backend (#8037)
This commit is contained in:
@@ -14,9 +14,12 @@ EchoError() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AssertExists() {
|
AssertExists() {
|
||||||
RunCommand ls $1
|
if [[ ! -e "$1" ]]; then
|
||||||
if [ $? -ne 0 ]; then
|
if [[ -h "$1" ]]; then
|
||||||
EchoError "The path $1 does not exist"
|
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
|
exit -1
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user