Skip to content

Instantly share code, notes, and snippets.

@nghiaht
Created November 23, 2020 06:56
Show Gist options
  • Save nghiaht/6fc19596453e325bce7586e2e5f0c432 to your computer and use it in GitHub Desktop.
Save nghiaht/6fc19596453e325bce7586e2e5f0c432 to your computer and use it in GitHub Desktop.
Source directory containing current symlinked script
SCRIPT_REAL_DIR=$(dirname $(realpath "$0"))
echo ${SECRIPT_REAL_DIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment