Bob Mottram 8 anni fa
parent
commit
7042fa0015
1 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 9
    1
      src/freedombone-app-tahoelafs

+ 9
- 1
src/freedombone-app-tahoelafs Vedi File

@@ -490,8 +490,16 @@ function create_tahoelafs_client {
490 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 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 505
 function get_tahoelafs_nick {