Skip to content

Instantly share code, notes, and snippets.

@edwardsmit
Created February 2, 2016 08:59
Show Gist options
  • Save edwardsmit/fa02895b8e31e89f1c37 to your computer and use it in GitHub Desktop.
Save edwardsmit/fa02895b8e31e89f1c37 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
CURRENT_DIR_OLD=$(dirname "${BASH_SOURCE[0]}" )
CURRENT_DIR_NEW=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
echo "$CURRENT_DIR_OLD"
echo "$CURRENT_DIR_NEW"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment