diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-12-04 15:33:24 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-12-04 15:35:28 +0100 |
commit | 9eda6b307ba6c5426c40c4cad95e07e43858230e (patch) | |
tree | 533e952ac2ddcf5f0b66399a0fcd8ec4ca048319 /bin | |
parent | e957766a104cb2380d46d7a125ebd0c80eef81d0 (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-x | bin/run | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |