浏览代码

Fix static analysis failures

Bob Mottram 7 年前
父节点
当前提交
dd2faeb37c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-utils-monkeysphere

+ 1
- 1
src/freedombone-utils-monkeysphere 查看文件

46
         exit 76295
46
         exit 76295
47
     fi
47
     fi
48
     monkeysphere-host import-key /etc/ssh/ssh_host_rsa_key "ssh://$DEFAULT_DOMAIN_NAME"
48
     monkeysphere-host import-key /etc/ssh/ssh_host_rsa_key "ssh://$DEFAULT_DOMAIN_NAME"
49
-    SSH_ONION_HOSTNAME=$(cat ${COMPLETION_FILE} | grep 'ssh onion domain' | awk -F ':' '{print $2}')
49
+    SSH_ONION_HOSTNAME=$(grep 'ssh onion domain' "${COMPLETION_FILE}" | awk -F ':' '{print $2}')
50
     monkeysphere-host import-key /etc/ssh/ssh_host_rsa_key "ssh://$SSH_ONION_HOSTNAME"
50
     monkeysphere-host import-key /etc/ssh/ssh_host_rsa_key "ssh://$SSH_ONION_HOSTNAME"
51
 
51
 
52
     if [ ! "$MY_GPG_PUBLIC_KEY_ID" ]; then
52
     if [ ! "$MY_GPG_PUBLIC_KEY_ID" ]; then