mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +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 && \
|
||||
case "$$boilerplate" in \
|
||||
*--) ;; \
|
||||
*) if head -1 $$boilerplate | grep -q '^#!/'; then \
|
||||
cp $$boilerplate blt/$${dst}$(NOEXECTEMPL); \
|
||||
*) if test -n "$$(sed -ne '/^#!\//p' -e '1q' < "$$boilerplate")"; then \
|
||||
cp "$$boilerplate" "blt/$${dst}$(NOEXECTEMPL)"; \
|
||||
else \
|
||||
cp $$boilerplate blt/$$dst; \
|
||||
cp "$$boilerplate" "blt/$$dst"; \
|
||||
fi ;; \
|
||||
esac || exit; \
|
||||
done && \
|
||||
|
||||
Reference in New Issue
Block a user