Commit 9ccc3eb3 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧
Browse files

Get absolute path without readlink

Because of BSD.
parent cb59c05b
......@@ -16,7 +16,7 @@ set -u
WEBOOB_TMPDIR=$(mktemp -d "${TMPDIR}/weboob_man.XXXXX")
# path to sources
WEBOOB_DIR=$(readlink -e $(dirname $0)/..)
WEBOOB_DIR=$(cd $(dirname $0)/.. && pwd -P)
touch "${WEBOOB_TMPDIR}/backends"
chmod 600 "${WEBOOB_TMPDIR}/backends"
echo "file://$WEBOOB_DIR/modules" > "${WEBOOB_TMPDIR}/sources.list"
......
......@@ -61,7 +61,7 @@ else
fi
# path to sources
WEBOOB_DIR=$(readlink -e $(dirname $0)/..)
WEBOOB_DIR=$(cd $(dirname $0)/.. && pwd -P)
${PYTHON} "$(dirname $0)/stale_pyc.py"
echo "file://$WEBOOB_DIR/modules" > "${WEBOOB_TMPDIR}/sources.list"
......
......@@ -10,7 +10,7 @@ set -u
WEBOOB_TMPDIR=$(mktemp -d "${TMPDIR}/weboob_lint.XXXXX")
# path to sources
WEBOOB_DIR=$(readlink -e $(dirname $0)/..)
WEBOOB_DIR=$(cd $(dirname $0)/.. && pwd -P)
touch "${WEBOOB_TMPDIR}/backends"
chmod 600 "${WEBOOB_TMPDIR}/backends"
echo "file://$WEBOOB_DIR/modules" > "${WEBOOB_TMPDIR}/sources.list"
......
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