diff options
-rw-r--r-- | src/lib/conf.sh.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/conf.sh.in b/src/lib/conf.sh.in index f2d515d..149e416 100644 --- a/src/lib/conf.sh.in +++ b/src/lib/conf.sh.in @@ -18,6 +18,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +if [[ "$(id -u "${SUDO_USER:-root}")" == 0 ]]; then + unset SUDO_USER +fi LIBREUSER="${SUDO_USER:-$USER}" if [[ $LIBREUSER == "$USER" ]]; then LIBREHOME=$HOME |