Replaced Bash "for" iteration with "find" utility.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 08 Jan 2021 13:57:12 +0200
changeset 967 186bfef3c7d1
parent 966 fdb61fbcca35
child 968 dc543d247f29
Replaced Bash "for" iteration with "find" utility.
Makefile
--- a/Makefile	Fri Jan 08 13:32:43 2021 +0200
+++ b/Makefile	Fri Jan 08 13:57:12 2021 +0200
@@ -118,9 +118,7 @@
 				files+=($$item)
 			fi
 		elif [[ -d $$item ]]; then
-			for file in `find $$item -type f`; do
-				$(INSTALL_DATA) $$file $(HOME)/$$file
-			done
+			find $$item -type f -exec $(INSTALL_DATA) {} $(HOME)/{} ';'
 		fi
 	done
 	$(INSTALL_DATA) -t $(HOME) "$${files[@]}"