mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 05:06:29 +00:00
18 lines
235 B
Bash
Executable File
18 lines
235 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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/$1" scratch
|
|
cargo run -- serve "scratch/$1" |