diff options
| author | Miquel Sabaté <msabate@suse.com> | 2015-08-24 13:47:58 +0200 |
|---|---|---|
| committer | Miquel Sabaté <msabate@suse.com> | 2015-08-24 13:47:58 +0200 |
| commit | 974a3655ee95fd22f98262603dca4faf8ed0711f (patch) | |
| tree | b3257b4d5fdc99811c732b0dc64f98cc3c46a4c0 /t | |
| parent | 1709da778ecee257946c0604d3fb68696ad039c1 (diff) | |
| download | g-974a3655ee95fd22f98262603dca4faf8ed0711f.tar.gz g-974a3655ee95fd22f98262603dca4faf8ed0711f.zip | |
t: use __g_realpath instead of realpath
Diffstat (limited to 't')
| -rw-r--r-- | t/tests.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -15,8 +15,14 @@ set -e +# From g.sh +__g_realpath() { + [ -d "$1" ] && echo "$(cd "$1" && pwd)" || echo "$(cd "$(dirname "$1")" + && pwd)/$(basename "$1")" +} + # Cleanup previous tests and setup some special variables. -d="$(realpath $(dirname $0))" +d="$(__g_realpath $(dirname $0))" rm -f $d/output.txt HOME="$d" |
