Skip to content

Commit 848eb29

Browse files
More quote fixes, add bash specifier
1 parent 80dd422 commit 848eb29

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

envcov.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
#
23
# Copyright 2014 Jonathan M. Reid. See LICENSE.txt
34
# Created by: Jon Reid, http://qualitycoding.org/
@@ -7,7 +8,7 @@
78
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
89
ENV_DIR="${DIR}"
910

10-
if [[ $DIR == *Pods/XcodeCoverage* ]]
11+
if [[ "$DIR" == *Pods/XcodeCoverage* ]]
1112
then
1213
echo "Using Cocoapods!"
1314
cd "${DIR}"
@@ -25,7 +26,7 @@ LCOV_INFO=Coverage.info
2526

2627
XCODECOVERAGE_PATH="${SRCROOT}/XcodeCoverage"
2728

28-
if [[ $DIR == *Pods/XcodeCoverage* ]]
29+
if [[ "$DIR" == *Pods/XcodeCoverage* ]]
2930
then
3031
echo "Using Cocoapods!"
3132
#The current directory will be where XcodeCoverage is living, not in SRCROOT

0 commit comments

Comments
 (0)