From 3761493c7c5aa419910260c0100d18c08dd10f0f Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 10 Apr 2016 21:18:08 +0000 Subject: [PATCH] $ for clarity --- urchin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/urchin b/urchin index 7ba404b..b619c83 100755 --- a/urchin +++ b/urchin @@ -241,9 +241,9 @@ fullpath() { readlink -f -- "${1}" } -# If 1 and 2 are the same path, echo "." -# If 1 is a parent of 2, echo the path of 2 relative 1. -# Otherwise, return with code 1. +# If $1 and $2 are the same path, return with code 1 +# If $1 is a parent of $2, echo the path of $2 relative $1. +# Otherwise, return with code 2. localpath() { parent="$(fullpath "${1}" | sed 's/\/*$//')" child="$(fullpath "${2}" | sed 's/\/*$//')" @@ -285,7 +285,7 @@ stdout_file() { the_test="${2}" the_shell="${3}" - x="${tmp_dir}/stdout$(fullpath "$the_test")" + x="${tmp_dir}/stdout$(localpath "$the_test")" mkdir -p "${x}" echo "${x}/$(md5 "${the_shell}")" }