filebot/installer/appbundle/MacOS/purchase.sh

21 lines
346 B
Bash
Raw Normal View History

#!/bin/sh
2016-09-17 04:14:54 +00:00
function validate {
2016-11-26 11:38:43 +00:00
/usr/bin/codesign --verbose --deep --verify /Applications/FileBot.app
2016-09-17 04:14:54 +00:00
}
function purchase {
/usr/bin/open https://app.filebot.net/purchase/FileBot.app
}
function help {
/usr/bin/open https://app.filebot.net/mac/brew.html
2016-09-17 04:14:54 +00:00
}
function start {
/usr/local/bin/filebot
}
validate && (start || help) || purchase