Browse Source

Update mac.sh

MoeClub 5 years ago
parent
commit
5b48ebf2e3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      AnyConnect/mac.sh

+ 2 - 2
AnyConnect/mac.sh

@@ -35,8 +35,8 @@ cat >"${USER_Home}/.anyconnect"<<EOF
 EOF
 
 [[ -f "${CRET_URL}" ]] && cp -f "${CRET_URL}" "/tmp/MacOS.p12" || curl -sSL -H "User-Agent: wget/1.0" -o "/tmp/MacOS.p12" "${CRET_URL}"
-[ -f "/tmp/MacOS.p12" ] && security import "/tmp/MacOS.p12" -P "${CRET_PWD}"
-[ -f "/tmp/MacOS.p12" ] && rm -rf "/tmp/MacOS.p12"
+[[ -f "/tmp/MacOS.p12" ]] && security import "/tmp/MacOS.p12" -P "${CRET_PWD}"
+[[ -f "/tmp/MacOS.p12" ]] && rm -rf "/tmp/MacOS.p12"