summaryrefslogtreecommitdiff
path: root/mobile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mobile.sh')
-rwxr-xr-xmobile.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/mobile.sh b/mobile.sh
index b0bcc5d..59e5da8 100755
--- a/mobile.sh
+++ b/mobile.sh
@@ -1,5 +1,10 @@
#!/bin/bash
+if [[ "$snapsource" == "" ]]
+then
+ export snapsource="https://github.com/Gubolin/snap.git"
+fi
+
if [[ $1 = "" ]]
then
echo "Usage: mobile.sh PLATFORM [BUILDSOURCE]"
@@ -25,7 +30,7 @@ rm -rf www config.xml
if [[ $2 == "" ]]
then
- git clone https://github.com/Gubolin/snap.git www
+ git clone "$snapsource" www
cd www/
git checkout mobileapp
else