Commit e8d91035 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add 'expand' shell function to shared lib

parent 63074101
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -24,3 +24,10 @@ has()
{
	type "$1"
} >/dev/null 2>&1


if has realpath; then
	expand() { realpath $1; }
elif has readlink; then
	expand() { readlink -f $1; }
fi