Skip to content

Instantly share code, notes, and snippets.

@tsuchm
Created November 7, 2019 05:07
Show Gist options
  • Select an option

  • Save tsuchm/22e4a7b41449daba1585d000379fcb77 to your computer and use it in GitHub Desktop.

Select an option

Save tsuchm/22e4a7b41449daba1585d000379fcb77 to your computer and use it in GitHub Desktop.
case "$1" in
*/*)
executable=`readlink -f $1`
;;
*)
executable=`pwd`/$1
;;
esac
echo ${executable}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment