furl format
This commit is contained in:
parent
1babdf5db2
commit
394c27fe2d
|
@ -490,16 +490,11 @@ function create_tahoelafs_client {
|
|||
sed -i 's|tub.location =.*|tub.location = disabled|g' $client_dir/tahoe.cfg
|
||||
}
|
||||
|
||||
function tahoelafs_parse_furl {
|
||||
furl="$1"
|
||||
furl_1=$(echo "${furl}" | awk -F ' ' '{print $1}')
|
||||
furl_2=$(echo "${furl}" | awk -F ':' '{print $5}')
|
||||
echo "${furl_1}:${furl_2}"
|
||||
}
|
||||
|
||||
function get_tahoelafs_furl {
|
||||
furl="$(cat /home/tahoelafs/storage/private/storage.furl)"
|
||||
echo "$(tahoelafs_parse_furl \"$furl\")"
|
||||
furl=$(cat /home/tahoelafs/storage/private/storage.furl)
|
||||
furl_1="$(echo \"${furl}\" | awk -F ' ' '{print $1}')"
|
||||
furl_2="$(echo \"${furl}\" | awk -F ':' '{print $5}')"
|
||||
echo "${furl_1}:${furl_2}"
|
||||
}
|
||||
|
||||
function get_tahoelafs_nick {
|
||||
|
|
Loading…
Reference in New Issue