Avoid bash'ism (comment in line continuation)
bash appears to remove comments only up to the next line-continuation backslash/newline pair, while SUS mandates that the "<backslash> and <newline> shall be removed before splitting the input into tokens", and at least zsh 5.8 follows that interpretation and thus complained about a `then` not followed by a `fi` Change-Id: Ifedb002f133a7bc4f79bb9bec3e8c97ccc704aaa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119227 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
a541e61112
commit
cfab695d0e
1 changed files with 2 additions and 1 deletions
|
@ -58,9 +58,10 @@ else # MAKE_RESTARTS
|
|||
|
||||
.DEFAULT_GOAL := build
|
||||
|
||||
# Nested test is to check if the systemd-detect-virt command doesn't exist or it reports we're not
|
||||
# in a container:
|
||||
check-if-root:
|
||||
@if test ! `uname` = 'Haiku' -a `id -u` = 0; then \
|
||||
# if the systemd-detect-virt command doesn't exist or it reports we're not in a container \
|
||||
if test ! -x "$$(command -v systemd-detect-virt)" || ! systemd-detect-virt -c -q; then \
|
||||
echo; \
|
||||
echo 'Building LibreOffice as root is a very bad idea, use a regular user.'; \
|
||||
|
|
Loading…
Reference in a new issue