Skip to content

Commit

Permalink
Fix path when using cached Swift
Browse files Browse the repository at this point in the history
  • Loading branch information
briancroom authored and Brian Croom committed Dec 10, 2015
1 parent 761b394 commit 2c88ea6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ source $compile_buildpack_dir/bin/common.sh
BUILDPACK_PATH=$compile_buildpack_dir source $compile_buildpack_dir/compile-extensions/lib/common

mkdir -p $CACHE_DIR
cd $CACHE_DIR

# download and unpack swift
if [[ ! -d "$CACHE_DIR/$SWIFT_NAME_VERSION" ]]; then
cd $CACHE_DIR
status "Installing Swift $SWIFT_VERSION"
mkdir -p $SWIFT_NAME_VERSION
dependency=$($compile_buildpack_dir/compile-extensions/bin/download_dependency $SWIFT_NAME_VERSION.tar.gz /tmp)
Expand All @@ -46,7 +46,6 @@ SWIFT_PATH=$CACHE_DIR/$(echo $SWIFT_NAME_VERSION/swift*)

# download and unpack clang
if [[ ! -d "$CACHE_DIR/$CLANG_NAME_VERSION" ]]; then
cd $CACHE_DIR
status "Installing Clang $CLANG_VERSION"
mkdir -p $CLANG_NAME_VERSION
dependency=$($compile_buildpack_dir/compile-extensions/bin/download_dependency $CLANG_NAME_VERSION.tar.xz /tmp)
Expand Down

0 comments on commit 2c88ea6

Please sign in to comment.