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