Skip to content

Instantly share code, notes, and snippets.

/-

Created December 19, 2013 04:53
Show Gist options
  • Save anonymous/8034591 to your computer and use it in GitHub Desktop.
Save anonymous/8034591 to your computer and use it in GitHub Desktop.
#!/bin/bash
CFX=/Users/jeff/code/jetpack/addon-sdk/bin/cfx
NAME=`cat ./package.json| pkg_tool.js name`.xpi
if [ -z "$1" ]; then
URL="http://127.0.0.1:8888/"
else
URL="http://127.0.0.1:$1/"
fi
# echo $URL
$CFX xpi && wget --post-file=$NAME $URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment