Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 653ad51

Browse files
committed
Use local cake.packages.config
1 parent 947513e commit 653ad51

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

build.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,16 @@ fi
4747

4848
# Make sure that packages.config exist.
4949
if [ ! -f "$TOOLS_DIR/packages.config" ]; then
50-
echo "Downloading packages.config..."
51-
curl -Lsfo "$TOOLS_DIR/packages.config" https://cakebuild.net/download/bootstrapper/packages
52-
if [ $? -ne 0 ]; then
53-
echo "An error occurred while downloading packages.config."
54-
exit 1
50+
if [ ! -f "$SCRIPT_DIR/cake.packages.config" ]; then
51+
echo "Downloading packages.config..."
52+
curl -Lsfo "$TOOLS_DIR/packages.config" https://cakebuild.net/download/bootstrapper/packages
53+
if [ $? -ne 0 ]; then
54+
echo "An error occurred while downloading packages.config."
55+
exit 1
56+
fi
57+
else
58+
echo "using local cake.packages.config..."
59+
cp "$SCRIPT_DIR/cake.packages.config" "$TOOLS_DIR/packages.config"
5560
fi
5661
fi
5762

cake.packages.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Cake" version="0.27.0" />
4+
</packages>

0 commit comments

Comments
 (0)