mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-24 22:56:02 +00:00
Fix up test scratch project snippet to accept a project as an arg
This commit is contained in:
@@ -2,11 +2,17 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [ ! -d "../test-projects/$1" ]
|
||||||
|
then
|
||||||
|
echo "Pick a project that exists!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d "scratch" ]
|
if [ -d "scratch" ]
|
||||||
then
|
then
|
||||||
rm -rf scratch
|
rm -rf scratch
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p scratch
|
mkdir -p scratch
|
||||||
cp -r ../test-projects/test-model scratch
|
cp -r "../test-projects/$1" scratch
|
||||||
cargo run -- serve scratch/test-model
|
cargo run -- serve "scratch/$1"
|
||||||
Reference in New Issue
Block a user