From 4d3c1121beaca93223af03dc3e1eadbdf791746b Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 16 Jan 2019 07:53:16 +0000 Subject: [PATCH] Update comment so it matches the current code (refs: #15583) --- config/chroot_local-includes/etc/bash.bashrc.d/replace-su-with-sudo.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/chroot_local-includes/etc/bash.bashrc.d/replace-su-with-sudo.sh b/config/chroot_local-includes/etc/bash.bashrc.d/replace-su-with-sudo.sh index 77ab75d6c8c..3fe81fb7c63 100755 --- a/config/chroot_local-includes/etc/bash.bashrc.d/replace-su-with-sudo.sh +++ b/config/chroot_local-includes/etc/bash.bashrc.d/replace-su-with-sudo.sh @@ -15,8 +15,7 @@ # Get LIVE_USERNAME . /etc/live/config.d/username.conf -# Since we don't want to add 'su' function for root user, we will stop -# execution of this script if $USER is root. +# Only add the 'su' function for the desktop user. [ "$USER" == "$LIVE_USERNAME" ] || return su (){ -- 2.11.4.GIT