From 7b8475a015331d5c736ce193da148954af3173df Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 17 Jun 2019 17:05:42 +0200 Subject: [PATCH] [runtimes] Added optional version parameter to export.sh --- examples/export/export.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/export/export.sh b/examples/export/export.sh index cfa8c799e..7c147f783 100755 --- a/examples/export/export.sh +++ b/examples/export/export.sh @@ -12,8 +12,12 @@ if [ ! -f "$SPINE_EXE" ]; then fi echo "Spine exe: $SPINE_EXE" -echo "Please enter the Spine editor version to use to clean the examples (e.g. 3.7.58-beta)" -read version +if [ "$#" -eq 1 ]; then + version=${1%/} +else + echo "Please enter the Spine editor version to use to clean the examples (e.g. 3.7.58-beta)" + read version +fi echo "Cleaning export directories ..." rm -rf ../alien/export/*