From 9ffda16a1daad4458ce3d6b36cb03a0d63f469d9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sun, 25 Jan 2015 14:52:11 +0100 Subject: [PATCH] build: replace `echo -n` by `printf '%s'` in configure.ac https://bugzilla.gnome.org/show_bug.cgi?id=743480 (cherry picked from commit a6aacde469605ed7485ea096dd78b53dded583ab) --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b407686387..5c87c7e507 100644 --- a/configure.ac +++ b/configure.ac @@ -302,7 +302,7 @@ AM_CONDITIONAL(WITH_QT, test "${enable_qt}" = "yes") AC_ARG_WITH(udev-dir, AS_HELP_STRING([--with-udev-dir=DIR], [Absolute path of the udev base directory. Set to 'no' not to install the udev rules]), [], [with_udev_dir="yes"]) if (test "$with_udev_dir" != 'no'); then - if (test "$with_udev_dir" != 'yes' && echo -n "$with_udev_dir" | grep -v -q '^/'); then + if (test "$with_udev_dir" != 'yes' && printf '%s' "$with_udev_dir" | grep -v -q '^/'); then AC_MSG_ERROR([--with-udev-dir must be an absolute path or 'yes' or 'no'. Instead it is '$with_udev_dir']) fi if (test "$with_udev_dir" = 'yes'); then