blob: d8691f35baf52d6234c6f702ddc133bf9c1320f0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# realpath for macOS
# https://flummox-engineering.blogspot.com/2014/06/getting-absolute-path-in-bash-in-osx.html
case "$1" in
/*) path=$1 ;;
*) path=$PWD/$1 ;;
esac
printf '%s' "$path"
|