From 5e2450707d3397bc42759280a841edca188273bd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 12 Mar 2020 00:49:26 +0000 Subject: [PATCH] Make path = be absolute This makes it work for crates in subdirectories Signed-off-by: Ian Jackson --- nailing-cargo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nailing-cargo b/nailing-cargo index fd1fea0..1cc6138 100755 --- a/nailing-cargo +++ b/nailing-cargo @@ -56,7 +56,7 @@ while read <&204 what where; do qwhere="${where//\//\\/}" sed+=' s/^'$what' *= *\(\".*\"\) *$/'$what' = { version = \1 }/; - s/^'$what' *= *{/'$what' = { path = "..\/'"${qwhere}"'", /; + s#^'$what' *= *{#'$what' = { path = "'"${PWD%/*}"'/'"${qwhere}"'", #; /^'$what' *=/ s/version *= *\"[^"]*\"//; /^'$what' *=/ s/, *\([,}]\)/\1/; ' -- 2.30.2