summaryrefslogtreecommitdiff
path: root/desktop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'desktop.sh')
-rwxr-xr-xdesktop.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop.sh b/desktop.sh
index 8b0e21c..53ec24b 100755
--- a/desktop.sh
+++ b/desktop.sh
@@ -1,5 +1,10 @@
#!/bin/bash
+if [[ "$snapsource" == "" ]]
+then
+ export snapsource="https://github.com/Gubolin/snap.git"
+fi
+
if [[ $1 = "" ]]
then
echo "Usage: desktop.sh PLATFORM [BUILDSOURCE]"
@@ -16,7 +21,7 @@ builddir=$(mktemp -d)
if [[ $2 == "" ]]
then
- git clone https://github.com/Gubolin/snap.git $builddir
+ git clone "$snapsource" $builddir
cd $builddir/
git checkout mobileapp
else