little workaround BSD abspaths

This commit is contained in:
ville rantanen
2019-04-12 13:46:41 +03:00
parent 5678c7e8f9
commit 93b02c5161
7 changed files with 12 additions and 5 deletions

6
files/abs-path Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -e
case $OSTYPE in
darwin*) exec realpath "$1" ;;
*) exec readlink -f "$1" ;;
esac