Created
August 1, 2022 07:47
-
-
Save BCadet/bfdaf671d958e376cadc35846e90f784 to your computer and use it in GitHub Desktop.
get absolute path of a script
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 | |
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment