Skip to content

Commit 64b5ddf

Browse files
committed
Set PRE_SETUP for setup
1 parent ea3125d commit 64b5ddf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/action/entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ set -e
33
git config --global --add safe.directory "$GITHUB_WORKSPACE"
44
git config --global --add safe.directory "$GITHUB_WORKSPACE/./.git"
55

6+
if [ ! -f Makefile ]; then
7+
export PRE_SETUP=true
8+
fi
69
if [ "$1" = "setup" ]; then
710
echo "Running setup"
811
exec make -f lib/setup.mk
@@ -11,8 +14,7 @@ if [ ! -f Makefile ]; then
1114
echo "Cloning i-d-template into lib for default configuration."
1215
echo "Note: Until setup is complete, the editor's copy will not be updated."
1316
git clone https://github.com/martinthomson/i-d-template lib
14-
echo "PRE_SETUP := true" >Makefile
15-
cat lib/template/Makefile >>Makefile
17+
cp lib/template/Makefile Makefile
1618
fi
1719

1820
make .targets.mk

0 commit comments

Comments
 (0)