Commit 454c98f2 authored by Daniel Schulte's avatar Daniel Schulte
Browse files

Fixed sudo fail with documentation generation

parent ca1250a8
......@@ -410,7 +410,8 @@ create_doc()
cp "${WORKING_DIR}/DOCUMENTATION.gen.pdf" "$HOME/Deine-LIP-Dokumentation.pdf"
USER_HOME=$(getent passwd "${SUDO_USER:-$USER}" | cut -d ':' -f6)
cp "${WORKING_DIR}/DOCUMENTATION.gen.pdf" "${USER_HOME}/Deine-LIP-Dokumentation.pdf"
pressenter "Dokummentation der von dir installierten Paktete wurde in deinem Benutzerverzeichnis ($HOME) als 'Deine-LIP-Dokumentation.pdf' abegelegt."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment