link_modules_resources: Fix realpath on OSX
parent
65613053eb
commit
b3b0259955
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue