Skip to content
Snippets Groups Projects
Commit 454c98f2 authored by Daniel Schulte's avatar Daniel Schulte
Browse files

Fixed sudo fail with documentation generation

parent ca1250a8
No related branches found
No related tags found
No related merge requests found
......@@ -410,7 +410,8 @@ create_doc()
fi
popd
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"
RC=$?
pressenter "Dokummentation der von dir installierten Paktete wurde in deinem Benutzerverzeichnis ($HOME) als 'Deine-LIP-Dokumentation.pdf' abegelegt."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment