Browse Source

Check that repo clone happens

Bob Mottram 7 years ago
parent
commit
590bcd316c
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-app-batman

+ 4
- 0
src/freedombone-app-batman View File

@@ -143,6 +143,10 @@ function install_mesh_tunnel {
143 143
     chroot "$rootdir" apt-get -yq install iproute bridge-utils libnetfilter-conntrack3 python-dev libevent-dev ebtables python-pip git
144 144
 
145 145
     git clone https://github.com/wlanslovenija/tunneldigger $rootdir/opt/tunneldigger
146
+    if [ ! -d $rootdir/opt/tunneldigger/client ]; then
147
+        echo $'Unable to clone tunneldigger repo'
148
+        exit 1987453
149
+    fi
146 150
     cd $rootdir/opt/tunneldigger/client
147 151
     chroot "$rootdir" make
148 152
     if [ ! -f $rootdir/opt/tunneldigger/client/l2tp_client ]; then