diff options
Diffstat (limited to 'tests/common.sh.in')
-rw-r--r-- | tests/common.sh.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in index 71554af109a5..403e144e2dac 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -32,3 +32,7 @@ export nixinstantiate=$TOP/src/nix-instantiate/nix-instantiate export nixstore=$TOP/src/nix-store/nix-store export nixenv=$TOP/src/nix-env/nix-env export nixhash=$TOP/src/nix-hash/nix-hash + +readLink() { + ls -l "$1" | sed 's/.*->\ //' +} |