Skip to content

Commit 8c2d7ff

Browse files
committed
Update envcov.sh
Fix a bug that env.sh was not found when you call ``getcov`` form outside the XcodeCoverage folder
1 parent 70a5a38 commit 8c2d7ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

envcov.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ENV_DIR="${DIR}"
1010
if [[ $DIR == *Pods/XcodeCoverage* ]]
1111
then
1212
echo "Using Cocoapods!"
13+
cd ${DIR}
1314
cd ..
1415
cd ..
1516

@@ -37,4 +38,4 @@ OBJ_DIR=${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}
3738
# Fix for the new LLVM-COV that requires gcov to have a -v paramter
3839
LCOV() {
3940
${LCOV_PATH}/lcov "$@" --gcov-tool ${XCODECOVERAGE_PATH}/llvm-cov-wrapper.sh
40-
}
41+
}

0 commit comments

Comments
 (0)