mirror of
https://github.com/git/git.git
synced 2026-03-14 02:43:25 +01:00
Replace head -1 | grep by sed.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
This commit is contained in:
@@ -34,10 +34,10 @@ boilerplates.made : $(bpsrc)
|
|||||||
mkdir -p blt/$$dir && \
|
mkdir -p blt/$$dir && \
|
||||||
case "$$boilerplate" in \
|
case "$$boilerplate" in \
|
||||||
*--) ;; \
|
*--) ;; \
|
||||||
*) if head -1 $$boilerplate | grep -q '^#!/'; then \
|
*) if test -n "$$(sed -ne '/^#!\//p' -e '1q' < "$$boilerplate")"; then \
|
||||||
cp $$boilerplate blt/$${dst}$(NOEXECTEMPL); \
|
cp "$$boilerplate" "blt/$${dst}$(NOEXECTEMPL)"; \
|
||||||
else \
|
else \
|
||||||
cp $$boilerplate blt/$$dst; \
|
cp "$$boilerplate" "blt/$$dst"; \
|
||||||
fi ;; \
|
fi ;; \
|
||||||
esac || exit; \
|
esac || exit; \
|
||||||
done && \
|
done && \
|
||||||
|
|||||||
Reference in New Issue
Block a user