Bob Mottram 8 lat temu
rodzic
commit
7042fa0015
1 zmienionych plików z 9 dodań i 1 usunięć
  1. 9
    1
      src/freedombone-app-tahoelafs

+ 9
- 1
src/freedombone-app-tahoelafs Wyświetl plik

490
     sed -i 's|tub.location =.*|tub.location = disabled|g' $client_dir/tahoe.cfg
490
     sed -i 's|tub.location =.*|tub.location = disabled|g' $client_dir/tahoe.cfg
491
 }
491
 }
492
 
492
 
493
+function tahoelafs_parse_furl {
494
+    furl="$1"
495
+    furl_1=$(cat "$furl" | awk -F ' ' '{print $1}')
496
+    furl_2=$(cat "$furl" | awk -F ':' '{print $5}')
497
+    echo "${furl_1}:${furl_2}"
498
+}
499
+
493
 function get_tahoelafs_furl {
500
 function get_tahoelafs_furl {
494
-    echo "$(cat /home/tahoelafs/storage/private/storage.furl)"
501
+    furl="$(cat /home/tahoelafs/storage/private/storage.furl)"
502
+    echo "$(tahoelafs_parse_furl \"$furl\")"
495
 }
503
 }
496
 
504
 
497
 function get_tahoelafs_nick {
505
 function get_tahoelafs_nick {