Skip to content

Commit

Permalink
closes #1046 - Fix quotes in paths in bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeMatt committed Dec 29, 2018
1 parent 958cc5f commit 36a52f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Provenance/Resources/createVersionHeader.sh
Expand Up @@ -115,7 +115,7 @@ fi

echo "Creating Version.h in" ${PROJECT_DIR}

cat <<EOF > $VERSION_H_PATH
cat <<EOF > "${VERSION_H_PATH}"
// Do not edit! This file was autogenerated
// by $0
Expand Down Expand Up @@ -163,7 +163,7 @@ EOF

echo "Creating Version.swift in" ${PROJECT_DIR}

cat <<EOF > $VERSION_SWIFT_PATH
cat <<EOF > "${VERSION_SWIFT_PATH}"
// Do not edit! This file was autogenerated
// by $0
// on $NOW
Expand Down
4 changes: 2 additions & 2 deletions Scripts/carthage-static.sh
Expand Up @@ -3,8 +3,8 @@
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT

echo "MACH_O_TYPE = staticlib" >> $xcconfig
echo "DEBUG_INFORMATION_FORMAT = dwarf" >> $xcconfig
echo "MACH_O_TYPE = staticlib" >> "${xcconfig}"
echo "DEBUG_INFORMATION_FORMAT = dwarf" >> "${xcconfig}"

export XCODE_XCCONFIG_FILE="$xcconfig"

Expand Down
2 changes: 1 addition & 1 deletion Scripts/carthage.sh
Expand Up @@ -107,7 +107,7 @@ runCarthageAndCopyResolved() {
local SWIFT_VERSION_PATH="$SOURCEPATH/Carthage/.swift-version"
local swiftVersion=$(get_swift_version "$(xcrun -f swift)")
echo "Storing current swift version $swiftVersion to $SWIFT_VERSION_PATH"
echo "$swiftVersion" > "$SWIFT_VERSION_PATH"
echo "$swiftVersion" > "${SWIFT_VERSION_PATH}"

echo "This will be used to check Carthage dependency updates in the future."
}
Expand Down

0 comments on commit 36a52f2

Please sign in to comment.