forked from rojo-rbx/rojo
Fix up test scratch project snippet to accept a project as an arg
This commit is contained in:
@@ -2,11 +2,17 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -d "../test-projects/$1" ]
|
||||
then
|
||||
echo "Pick a project that exists!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "scratch" ]
|
||||
then
|
||||
rm -rf scratch
|
||||
fi
|
||||
|
||||
mkdir -p scratch
|
||||
cp -r ../test-projects/test-model scratch
|
||||
cargo run -- serve scratch/test-model
|
||||
cp -r "../test-projects/$1" scratch
|
||||
cargo run -- serve "scratch/$1"
|
||||
Reference in New Issue
Block a user