Created
June 5, 2015 23:29
-
-
Save jeffsharpe/3351dbcfe3dd99d93d6e to your computer and use it in GitHub Desktop.
Script to create wow links on OSX - 20150605
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$OSTYPE" =~ ^darwin ]]; then | |
SOURCE="~/Dropbox/Software/Extensions/WoW" | |
DIR_BASE="/Applications/World of Warcraft/" | |
# lets check AddOns | |
DIR_AddOns="${DIR_BASE}/Interface/AddOns" | |
if [ -d "${DIR_AddOns}" ]; then | |
echo "Warning: ${DIR_AddOns} already exists! Skipping link." | |
echo " Remove manually to proceed!" | |
else | |
ln -sf ${SOURCE}/AddOns "${DIR_AddOns}" | |
fi | |
# Lets check WTF | |
DIR_WTF="${DIR_BASE}/WTF" | |
if [ -d "${DIR_WTF}" ]; then | |
echo "Warning: ${DIR_WTF}/ already exists! Skipping link." | |
echo " Remove manually to proceed!" | |
else | |
ln -sf ${SOURCE}/WTF "${DIR_WTF}" | |
fi | |
else | |
echo "Error: $0 is for OSX only!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment