Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Automatically symlink $POW_ROOT/Hosts to ~/.pow

  • Loading branch information...
commit f457fd52170c311dff8e106f255fcbf4c981a522 1 parent b4f7ab0
@sstephenson sstephenson authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 install.sh
View
8 install.sh
@@ -24,6 +24,7 @@ echo "*** Installing Pow $VERSION..."
mkdir -p "$POW_ROOT"
cd "$POW_ROOT"
+mkdir -p Hosts
mkdir -p Versions
cd Versions
curl -s http://get.pow.cx.s3-website-us-east-1.amazonaws.com/versions/$VERSION.tar.gz | tar xzf -
@@ -31,8 +32,11 @@ cd ..
rm -f Current
ln -s Versions/$VERSION Current
-mkdir -p ~/Library/LaunchAgents
-cat > ~/Library/LaunchAgents/cx.pow.powd.plist <<EOF
+cd
+[[ -a .pow ]] || ln -s "$POW_ROOT/Hosts" .pow
+
+mkdir -p Library/LaunchAgents
+cat > Library/LaunchAgents/cx.pow.powd.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
Please sign in to comment.
Something went wrong with that request. Please try again.