From 1a89a5075e8fdffa2587c8903d2b1d2d9987fffe Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:18:36 -0400 Subject: [PATCH] simplify check for `${SUDO,DOAS}_USER` --- INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 7a78cff6c..5b848129a 100755 --- a/INSTALL +++ b/INSTALL @@ -51,7 +51,7 @@ _download_am_modules() { cd .. # ENABLE NON-ROOT PERMISSIONS TO THE MAIN DIRECTORY FOR THE CURRENT USER - [ -n "$SUDO_USER" ] && chown -R "$SUDO_USER" /opt/am 2> /dev/null || [ -n "$DOAS_USER" ] && chown -R "$DOAS_USER" /opt/am 2> /dev/null + chown -R "${SUDO_USER:-$DOAS_USER}" /opt/am 2>/dev/null } echo '--------------------------------------------------------------------------'