diff options
| author | Gubolin <gubolin@fantasymail.de> | 2015-01-03 10:59:47 +0100 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2015-01-03 10:59:47 +0100 |
| commit | 45033e2101a5d5d0929dd28205f3177059ad865d (patch) | |
| tree | c90f4527ea94f6fbf211db10f95695a32380dc10 /binary.sh | |
| parent | 89b1bdb53ff49148f7757a932bfd393b9248fd2c (diff) | |
| download | snap-45033e2101a5d5d0929dd28205f3177059ad865d.tar.gz snap-45033e2101a5d5d0929dd28205f3177059ad865d.zip | |
allow setting the Snap! source in a variable
Diffstat (limited to 'binary.sh')
| -rwxr-xr-x | binary.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
