diff --git a/scripts/link_modules_resources.sh b/scripts/link_modules_resources.sh index 019d0ee..0b9b0fb 100755 --- a/scripts/link_modules_resources.sh +++ b/scripts/link_modules_resources.sh @@ -1,5 +1,13 @@ #!/bin/bash +if [[ "$OSTYPE" == "darwin"* ]]; then + # Mac OS X doesn't have realpath + realpath() { + [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" + } +fi + + if [ ! -d public/js ]; then mkdir public/js fi