Sfoglia il codice sorgente

mobile format onion address

Bob Mottram 7 anni fa
parent
commit
f3ce14c385
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4
    4
      src/freedombone-utils-onion

+ 4
- 4
src/freedombone-utils-onion Vedi File

427
     mobilestr="$2"
427
     mobilestr="$2"
428
 
428
 
429
     if [ ${#mobilestr} -gt 0 ]; then
429
     if [ ${#mobilestr} -gt 0 ]; then
430
-        mobilestr="_${mobilestr}"
430
+        app_name="mobile${app_name}"
431
     fi
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
             return
435
             return
436
         fi
436
         fi
437
     fi
437
     fi