From 45033e2101a5d5d0929dd28205f3177059ad865d Mon Sep 17 00:00:00 2001 From: Gubolin Date: Sat, 3 Jan 2015 10:59:47 +0100 Subject: allow setting the Snap! source in a variable --- binary.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'binary.sh') 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 -- cgit v1.3.1