# HG changeset patch # User Oleksandr Gavenko # Date 1699800511 -7200 # Node ID 865f28fee788e20b0273d4cdc8a552a297cca363 # Parent 03c2b7f76bb773461e62186b90b4f676f47deadb Test pattern with the keyword "case". diff -r 03c2b7f76bb7 -r 865f28fee788 Makefile --- a/Makefile Sun Nov 12 16:42:08 2023 +0200 +++ b/Makefile Sun Nov 12 16:48:31 2023 +0200 @@ -113,11 +113,10 @@ declare -a files for item in $(OVERRIDDEN_ITEMS); do if [[ -f $$item ]]; then - if [[ $$item == */* ]]; then - $(INSTALL_DATA) $$item $(HOME)/$$item - else - files+=($$item) - fi + case "$$item" in + */*) $(INSTALL_DATA) $$item $(HOME)/$$item ;; + *) files+=($$item) ;; + esac elif [[ -d $$item ]]; then find $$item -type f -exec $(INSTALL_DATA) {} $(HOME)/{} ';' fi