From 262848eaa86cc0d31e56467eb3de2c9d8fdc3b12 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 28 Feb 2016 11:26:25 +0000 Subject: [PATCH] use urchin root --- urchin | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/urchin b/urchin index 998c96c..fb959dd 100755 --- a/urchin +++ b/urchin @@ -29,7 +29,6 @@ urchin_source() { # Expand relative paths alias fullpath='readlink -f --' -DEFAULT_URCHIN_ROOT="$PWD" urchin_path() { # XXX Change this to be relative the urchin root fullpath "$1" @@ -376,8 +375,8 @@ if [ "$#" != '1' ] || [ ! -d "$1" ] fi # Run or present the Molly guard. -if fullpath "$1" | grep -Fi 'test' > /dev/null || $force - then +if basename "$(urchin_root "$1")" | + grep -Fi 'test' > /dev/null || $force; then # Determine the environment variable to define for test scripts # that reflects the specified or implied shell to use for shell-code tests. # - Set it to the shell specified via -s, if any.