Fix bins
This commit is contained in:
parent
067eeb7bb8
commit
cd508eb3e5
|
@ -5,10 +5,7 @@
|
||||||
#
|
#
|
||||||
# Note: MAC ONLY!
|
# Note: MAC ONLY!
|
||||||
|
|
||||||
if ! is_mac; then
|
if ! command -v "wkhtmltopdf" &> /dev/null; then
|
||||||
echo "Mac-only script!"
|
|
||||||
exit
|
|
||||||
elif ! command_exists wkhtmltopdf; then
|
|
||||||
# wkhtmltopdf > 0.9.9 has a habit of hanging after it completes, so we
|
# wkhtmltopdf > 0.9.9 has a habit of hanging after it completes, so we
|
||||||
# install 0.9.9 explicitly instead.
|
# install 0.9.9 explicitly instead.
|
||||||
brew install https://raw.github.com/mxcl/homebrew/6e2d550cf4961129a790bfb0973f8e88704f439d/Library/Formula/wkhtmltopdf.rb
|
brew install https://raw.github.com/mxcl/homebrew/6e2d550cf4961129a790bfb0973f8e88704f439d/Library/Formula/wkhtmltopdf.rb
|
||||||
|
|
25
bin/prowl
25
bin/prowl
|
@ -1,25 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
|
|
||||||
# A quick script for sending myself prowl notifications
|
|
||||||
|
|
||||||
require 'prowl'
|
|
||||||
|
|
||||||
APIKEY_FILE = File.expand_path("~/.prowl-apikey")
|
|
||||||
|
|
||||||
if ARGV.length != 3
|
|
||||||
p "Usage: prowl [appname] [title] [message]"
|
|
||||||
exit
|
|
||||||
end
|
|
||||||
|
|
||||||
if not File.exists? APIKEY_FILE
|
|
||||||
p "#{APIKEY_FILE} does not exist. Create it!"
|
|
||||||
exit
|
|
||||||
end
|
|
||||||
|
|
||||||
api_key = File.read(APIKEY_FILE).strip
|
|
||||||
Prowl.add(
|
|
||||||
:apikey => api_key,
|
|
||||||
:application => ARGV[0],
|
|
||||||
:event => ARGV[1],
|
|
||||||
:description => ARGV[2]
|
|
||||||
)
|
|
Loading…
Reference in a new issue