mirror of
https://github.com/gitwatch/gitwatch
synced 2024-11-18 21:26:31 +00:00
Merge branch 'pr-68-greadlink'
This commit is contained in:
commit
e2fe30ad3a
10
gitwatch.sh
10
gitwatch.sh
@ -185,7 +185,15 @@ trap "cleanup" EXIT # make sure the timeout is killed when exiting script
|
|||||||
if [ "$(uname)" != "Darwin" ]; then
|
if [ "$(uname)" != "Darwin" ]; then
|
||||||
IN=$(readlink -f "$1")
|
IN=$(readlink -f "$1")
|
||||||
else
|
else
|
||||||
IN=$(greadlink -f "$1")
|
if is_command "greadlink"; then
|
||||||
|
IN=$(greadlink -f "$1")
|
||||||
|
else
|
||||||
|
IN=$(readlink -f "$1")
|
||||||
|
if [ $? -eq 1 ]; then
|
||||||
|
echo "Seems like your readlink doesn't support '-f'. Running without. Please 'brew install coreutils'."
|
||||||
|
IN=$(readlink "$1")
|
||||||
|
fi
|
||||||
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user