Skip to content

Instantly share code, notes, and snippets.

@davea
Created September 14, 2016 15:58
Show Gist options
  • Save davea/b1865ae6cf3234ddf8d52bedd3b21cca to your computer and use it in GitHub Desktop.
Save davea/b1865ae6cf3234ddf8d52bedd3b21cca to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd | sed -e 's/\/bin$//' )/.."
FROM="$DIR/fixmystreet/conf/general-$1.yml"
TO="$DIR/fixmystreet/conf/general.yml"
[[ -e $FROM ]] || echo "${FROM} doesn't exist"
[[ -L $TO ]] && rm $TO
ln -s $FROM $TO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment