Przeglądaj źródła

Check that repo clone happens

Bob Mottram 7 lat temu
rodzic
commit
590bcd316c
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4
    0
      src/freedombone-app-batman

+ 4
- 0
src/freedombone-app-batman Wyświetl plik

143
     chroot "$rootdir" apt-get -yq install iproute bridge-utils libnetfilter-conntrack3 python-dev libevent-dev ebtables python-pip git
143
     chroot "$rootdir" apt-get -yq install iproute bridge-utils libnetfilter-conntrack3 python-dev libevent-dev ebtables python-pip git
144
 
144
 
145
     git clone https://github.com/wlanslovenija/tunneldigger $rootdir/opt/tunneldigger
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
     cd $rootdir/opt/tunneldigger/client
150
     cd $rootdir/opt/tunneldigger/client
147
     chroot "$rootdir" make
151
     chroot "$rootdir" make
148
     if [ ! -f $rootdir/opt/tunneldigger/client/l2tp_client ]; then
152
     if [ ! -f $rootdir/opt/tunneldigger/client/l2tp_client ]; then