Skip to content

Instantly share code, notes, and snippets.

@mitio
Created October 20, 2014 10:42
Show Gist options
  • Save mitio/f725127b713878f28ed4 to your computer and use it in GitHub Desktop.
Save mitio/f725127b713878f28ed4 to your computer and use it in GitHub Desktop.
➜ ~ sh -x pow.sh
+ set -e
+ POW_ROOT='/Users/dimitardimitrov/Library/Application Support/Pow'
+ NODE_BIN='/Users/dimitardimitrov/Library/Application Support/Pow/Current/bin/node'
+ POW_BIN='/Users/dimitardimitrov/Library/Application Support/Pow/Current/bin/pow'
+ LATEST_VERSION=0.5.0
+ '[' -z '' ']'
+ ARCHIVE_URL_ROOT=http://get.pow.cx/versions
++ uname -s
+ '[' Darwin '!=' Darwin ']'
++ sw_vers -productVersion
+ MAC_OS_VERSION=10.10
++ version_component 10.10 2
++ printf %s 10.10
++ sed -e 's/\./ /g' -e 's/-/ /'
++ cut -f 2
+ MAC_OS_MINOR_VERSION=10
+ '[' 10 -lt 6 ']'
+ '[' -z '' ']'
+ '[' 10 -lt 9 ']'
+ VERSION=0.5.0
+ ARCHIVE_URL=http://get.pow.cx/versions/0.5.0.tar.gz
+ echo '*** Installing Pow 0.5.0...'
*** Installing Pow 0.5.0...
+ mkdir -p '/Users/dimitardimitrov/Library/Application Support/Pow/Hosts' '/Users/dimitardimitrov/Library/Application Support/Pow/Versions'
+ cd '/Users/dimitardimitrov/Library/Application Support/Pow/Versions'
+ rm -rf '/Users/dimitardimitrov/Library/Application Support/Pow/Versions/0.5.0'
+ curl -sL http://get.pow.cx/versions/0.5.0.tar.gz
+ tar xzf -
+ cd '/Users/dimitardimitrov/Library/Application Support/Pow'
+ rm -f Current
+ ln -s Versions/0.5.0 Current
+ cd /Users/dimitardimitrov
+ '[' -a .pow ']'
+ echo '*** Installing local configuration files...'
*** Installing local configuration files...
+ '/Users/dimitardimitrov/Library/Application Support/Pow/Current/bin/node' '/Users/dimitardimitrov/Library/Application Support/Pow/Current/bin/pow' --install-local
+ '/Users/dimitardimitrov/Library/Application Support/Pow/Current/bin/node' '/Users/dimitardimitrov/Library/Application Support/Pow/Current/bin/pow' --install-system --dry-run
+ NEEDS_ROOT=0
+ '[' 0 -eq 1 ']'
+ echo '*** Starting the Pow server...'
*** Starting the Pow server...
+ '[' 10 -ge 10 ']'
+ launchctl bootstrap gui/501 /Users/dimitardimitrov/Library/LaunchAgents/cx.pow.powd.plist
➜ ~ echo $?
133
➜ ~ launchctl bootstrap gui/501 /Users/dimitardimitrov/Library/LaunchAgents/cx.pow.powd.plist
/Users/dimitardimitrov/Library/LaunchAgents/cx.pow.powd.plist: Operation already in progress
➜ ~ echo $?
133
➜ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment