Commit 50201cb1 authored by Alexandru Dura's avatar Alexandru Dura
Browse files

Define a realpath function instead of using /usr/bin/realpath

parent d3a9dba0
#! /bin/bash
realpath() {
# /usr/bin/realpath is missing on some OSs, so we use this instead
# https://stackoverflow.com/questions/3572030/bash-script-absolute-path-with-os-x
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
THIS_SCRIPT=`realpath "$0"`
EDAF35_DIR=`dirname $THIS_SCRIPT`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment