]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
printf is more portable than "echo -n"
authorAlan T. DeKok <aland@freeradius.org>
Wed, 18 Mar 2020 20:21:22 +0000 (16:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 18 Mar 2020 20:21:22 +0000 (16:21 -0400)
scripts/docker/crossbuild/crossbuild.mk

index 835e5d07abab9585ef3e7dc60fdb071148076a86..fe55fd05a02dc5fb59ed049c18244676c94a609b 100644 (file)
@@ -108,7 +108,7 @@ define CROSSBUILD_IMAGE_RULE
 #
 .PHONY: crossbuild.${1}.status
 crossbuild.${1}.status:
-       ${Q}echo -n "`echo \"  ${1}                    \" | cut -c 1-20`"
+       ${Q}printf "%s" "`echo \"  ${1}                    \" | cut -c 1-20`"
        ${Q}if [ -e "$(DD)/stamp-up.${1}" ]; then echo "running"; \
                elif [ -e "$(DD)/stamp-image.${1}" ]; then echo "built"; \
                else echo "-"; fi