Tools: use greadlink for macos systems

This commit is contained in:
Siddharth Purohit 2019-01-23 12:08:01 +08:00 committed by Andrew Tridgell
parent c459f6c484
commit ba7187e31b

View File

@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
if [[ "$OSTYPE" == "darwin"* ]]; then
DIR=$(dirname $(readlink -f $0)) DIR=$(dirname $(greadlink -f $0))
else
DIR=$(dirname $(readlink -f $0))
fi
astyle --options="${DIR}"/astylerc $* astyle --options="${DIR}"/astylerc $*