link_modules_resources: Fix realpath on OSX

pull/1/head
Guillaume Lesniak 2016-04-18 14:31:41 +02:00
parent 65613053eb
commit b3b0259955
1 changed files with 8 additions and 0 deletions

View File

@ -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