From 6c7b36bfe6248fa6521f8796ae69a4bcadc6e763 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 10 Oct 2020 16:39:47 +0100 Subject: [PATCH] oot_massage_commandline: Catch bad $linkfarm_depth No functional change. Signed-off-by: Ian Jackson --- nailing-cargo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nailing-cargo b/nailing-cargo index 7c34457..69ad16e 100755 --- a/nailing-cargo +++ b/nailing-cargo @@ -630,7 +630,7 @@ END_BOTH ln -sf -- "$f" .; done'; END_SHALLOW - } else { + } elsif ($linkfarm_depth =~ /full|git/) { $pre .= <<'END_EITHER_DEEP_DIRS'; clean () { find -follow -lname "$src/*" -print0 | xargs -0r rm --; }; (set -e; cd "$src"; find . \! -name Cargo.lock \! \( -name .git -prune \) \! -path . \! -name .git -type d -print0) | @@ -656,6 +656,8 @@ END_FILES_FULL symlink "$src/$_", "$_" or die "$_ $!"; ' "$src"; END_DEEP + } else { + die "$linkfarm_depth ?"; } $pre .= <<'ENDLK' if $do_cargo_lock; if test -e Cargo.lock; then -- 2.30.2