From: Ian Jackson Date: Sat, 10 Oct 2020 15:39:47 +0000 (+0100) Subject: oot_massage_commandline: Catch bad $linkfarm_depth X-Git-Tag: nailing-cargo/1.0.0~44 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6c7b36bfe6248fa6521f8796ae69a4bcadc6e763;p=nailing-cargo.git oot_massage_commandline: Catch bad $linkfarm_depth No functional change. Signed-off-by: Ian Jackson --- 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