summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-12-04 15:33:24 +0100
committerMichael Stahl <mstahl@redhat.com>2014-12-04 15:35:28 +0100
commit9eda6b307ba6c5426c40c4cad95e07e43858230e (patch)
tree533e952ac2ddcf5f0b66399a0fcd8ec4ca048319 /bin
parente957766a104cb2380d46d7a125ebd0c80eef81d0 (diff)
bin/run: Adapt to run on Debian so-called GNU/Linux systems too
Amazingly Debian does not ship the realpath(1) from coreutils but has a separate source package for it, and it's not installed by default. Use readlink -f instead. Change-Id: I6e97c851e6ab96dac08771145e2ab39dd9c11c22
Diffstat (limited to 'bin')
-rwxr-xr-xbin/run4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/run b/bin/run
index 4fb369f149c4..a3acad6b4ae7 100755
--- a/bin/run
+++ b/bin/run
@@ -30,14 +30,14 @@ exec "${exedir}"/$@
else
-dir=$(realpath "$(pwd)")
+dir=$(readlink -f "$(pwd)")
while test ! -d "${dir}/instdir/program" ; do
if test "${dir}" = "/"; then
echo "error: cannot find \"program\" dir from \"$(pwd)\""
exit 1
fi
- dir=$(realpath "${dir}/..")
+ dir=$(readlink -f "${dir}/..")
done
exedir="${dir}"/workdir/LinkTarget/Executable