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 '--------------------------------------------------------------------------'