1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 16:58:51 -05:00
filebot/installer/appbundle/MacOS/purchase.sh
2016-11-26 19:38:43 +08:00

21 lines
346 B
Bash
Executable File

#!/bin/sh
function validate {
/usr/bin/codesign --verbose --deep --verify /Applications/FileBot.app
}
function purchase {
/usr/bin/open https://app.filebot.net/purchase/FileBot.app
}
function help {
/usr/bin/open https://app.filebot.net/mac/brew.html
}
function start {
/usr/local/bin/filebot
}
validate && (start || help) || purchase