From 5051e1ae8149c28df2b2316fbe0923ba7d480035 Mon Sep 17 00:00:00 2001 From: Amitai Schleier Date: Fri, 2 Mar 2018 14:13:05 -0500 Subject: Avoid unexpected full paths from find(1). --- po/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'po') diff --git a/po/Makefile b/po/Makefile index b71bb8b91..bd218c6e1 100644 --- a/po/Makefile +++ b/po/Makefile @@ -22,7 +22,7 @@ install: all # Underlay translation via po files that go in special per-language # underlays. - for file in `cd underlays && find . -type f -name \*.po`; do \ + for file in `find underlays -type f -name \*.po | sed -e 's|^underlays/||'`; do \ lang=`echo $$file | sed -e 's/.po$$//' -e 's/.*\\.//'`; \ dir=`dirname "$(DESTDIR)$(PREFIX)/share/ikiwiki/po/$$lang/$$file"`; \ install -d $$dir; \ -- cgit v1.2.3