summaryrefslogtreecommitdiff
path: root/binary.sh
diff options
context:
space:
mode:
Diffstat (limited to 'binary.sh')
-rwxr-xr-xbinary.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/binary.sh b/binary.sh
index 6f267d0..c1a481e 100755
--- a/binary.sh
+++ b/binary.sh
@@ -1,5 +1,10 @@
#!/bin/bash
+if [[ "$snapsource" == "" ]]
+then
+ export snapsource="https://github.com/Gubolin/snap.git"
+fi
+
if [[ $# < 2 ]]
then
echo "Usage: binary.sh OPTION PLATFORM [FILE]"
@@ -42,7 +47,7 @@ then
fi
buildsource=$(mktemp -d)
-git clone "https://github.com/Gubolin/snap.git" $buildsource
+git clone $snapsource $buildsource
cd "$buildsource"
git checkout mobileapp