Skip to content

Instantly share code, notes, and snippets.

@meowsus
Created January 25, 2014 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meowsus/8621943 to your computer and use it in GitHub Desktop.
Save meowsus/8621943 to your computer and use it in GitHub Desktop.
# FIRST ATTEMPT
#!/bin/bash
AMPPS_DIR='/Applications/AMPPS/www'
sudo rm -f $AMPPS_DIR
sudo ln -s $1 $AMPPS_DIR
# SECOND ATTEMPT
#!/bin/bash
CURRENT_DIR=$(pwd)
AMPPS_DIR='/Ampplications/AMPPS/'
cd $AMPPS_DIR
sudo rm -f www
sudo ln -s $1 www
cd $CURRENT_DIR
# THIRD ATTEMPT
#!/bin/bash
CURRENT_DIR=$(pwd)
AMPPS_DIR='/Applications/AMPPS/'
cd $AMPPS_DIR
sudo ln -sFf $1 www
cd $CURRENT_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment