Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Commit 7680aa7

Browse files
committed
Apparently I missed a few details of the packaging stuff for setup
1 parent 429de87 commit 7680aa7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package-repo.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55

66
# Package repository using supplied inst.lua (use inst-gold.lua for repository branch)
77

8-
stat repobuild/data/app-claw && rm -rf repobuild
9-
mkdir repobuild
8+
# this is a guard check to avoid removing repobuild if it's blatantly
9+
# not the actual repobuild directory (this is an rm -rf after all)
10+
stat repobuild/data/app-claw 1>/dev/null 2>/dev/null && rm -rf repobuild
11+
12+
mkdir -p repobuild
1013
cp -r code/* repobuild/
1114
cp -r repository/* repobuild/
1215
cp $1 repobuild/

package.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# No warranty is provided, implied or otherwise.
55

66
rm code/data/app-claw/*
7+
mkdir -p code/data/app-claw
78
lua claw/clawconv.lua code/data/app-claw/ < claw/code-claw.lua > /dev/null
89
rm code.tar
910
# Hey, look behind you, there's nothing to see here.

0 commit comments

Comments
 (0)