圆月山庄资源网 Design By www.vgjia.com
[Bash shell] 纯文本查看 复制代码
#!/bin/bashset -efile=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)regex="CFBundleShortVersionString = \"([^\.]+)"[[ $file =~ $regex ]]version=${BASH_REMATCH[1]}echo "Detected Navicat Premium version $version"case $version in    "16")        file=~/Library/Preferences/com.navicat.NavicatPremium.plist        ;;    "15")        file=~/Library/Preferences/com.prect.NavicatPremium15.plist        ;;    *)        echo "Version '$version' not handled"        exit 1       ;;esacecho -n "Reseting trial time..."regex="([0-9A-Z]{32}) = "[[ $(defaults read $file) =~ $regex ]]hash=${BASH_REMATCH[1]}if [ ! -z $hash ]; then    defaults delete $file $hashfiregex="\.([0-9A-Z]{32})"[[ $(ls -a ~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/ | grep '^\.') =~ $regex ]]hash2=${BASH_REMATCH[1]}if [ ! -z $hash2 ]; then    rm ~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/.$hash2fiecho " Done"
标签:
Mac版本 Navicat16无限试用方案

圆月山庄资源网 Design By www.vgjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
圆月山庄资源网 Design By www.vgjia.com