Parcourir la source

mobile format onion address

Bob Mottram il y a 7 ans
Parent
révision
f3ce14c385
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4
    4
      src/freedombone-utils-onion

+ 4
- 4
src/freedombone-utils-onion Voir le fichier

@@ -427,11 +427,11 @@ function get_app_onion_address {
427 427
     mobilestr="$2"
428 428
 
429 429
     if [ ${#mobilestr} -gt 0 ]; then
430
-        mobilestr="_${mobilestr}"
430
+        app_name="mobile${app_name}"
431 431
     fi
432
-    if grep -q "${app_name}${mobilestr} onion domain" $COMPLETION_FILE; then
433
-        if grep -q "${app_name}${mobilestr} onion domain" $COMPLETION_FILE; then
434
-            echo $(cat ${COMPLETION_FILE} | grep "${app_name}${mobilestr} onion domain" | head -n 1 | awk -F ':' '{print $2}')
432
+    if grep -q "${app_name} onion domain" $COMPLETION_FILE; then
433
+        if grep -q "${app_name} onion domain" $COMPLETION_FILE; then
434
+            echo $(cat ${COMPLETION_FILE} | grep "${app_name} onion domain" | head -n 1 | awk -F ':' '{print $2}')
435 435
             return
436 436
         fi
437 437
     fi