From 1d95db4b07e31848335824e3facc78dd51e11f45 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Wed, 22 Mar 2023 16:39:22 +0100 Subject: [PATCH] use 'echo -n' as fallback for log_daemon_msg the final newline is supplied by log_end_msg --- dkms_autoinstaller | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dkms_autoinstaller b/dkms_autoinstaller index 2cd31b9..bff9ac5 100755 --- a/dkms_autoinstaller +++ b/dkms_autoinstaller @@ -23,13 +23,11 @@ elif [ -f /etc/rc.d/init.d/functions ]; then . /etc/rc.d/init.d/functions fi -# We only have these functions on debian/ubuntu +# We only have these functions on Debian/Ubuntu # so on other distros just stub them out if [ ! -f /etc/debian_version ]; then - alias log_daemon_msg=/bin/echo + alias log_daemon_msg='/bin/echo -n' log_end_msg() { if [ "$1" = "0" ]; then echo " Done. "; else echo " Failed. "; fi; } - alias log_action_begin_msg=log_daemon_msg - alias log_action_end_msg=log_end_msg fi exec="/usr/sbin/dkms" -- 2.20.1