Kaynağa Gözat

furl format

Bob Mottram 8 yıl önce
ebeveyn
işleme
394c27fe2d
1 değiştirilmiş dosya ile 4 ekleme ve 9 silme
  1. 4
    9
      src/freedombone-app-tahoelafs

+ 4
- 9
src/freedombone-app-tahoelafs Dosyayı Görüntüle

@@ -490,16 +490,11 @@ 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=$(echo "${furl}" | awk -F ' ' '{print $1}')
496
-    furl_2=$(echo "${furl}" | awk -F ':' '{print $5}')
497
-    echo "${furl_1}:${furl_2}"
498
-}
499
-
500 493
 function get_tahoelafs_furl {
501
-    furl="$(cat /home/tahoelafs/storage/private/storage.furl)"
502
-    echo "$(tahoelafs_parse_furl \"$furl\")"
494
+    furl=$(cat /home/tahoelafs/storage/private/storage.furl)
495
+    furl_1="$(echo \"${furl}\" | awk -F ' ' '{print $1}')"
496
+    furl_2="$(echo \"${furl}\" | awk -F ':' '{print $5}')"
497
+    echo "${furl_1}:${furl_2}"
503 498
 }
504 499
 
505 500
 function get_tahoelafs_nick {