Skip to content

Commit

Permalink
prelude.sh - Add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-revay authored Oct 17, 2023
1 parent 1a3d58c commit 8b95c95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prelude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ if [[ "${__INITPC_PRELUDE_SOURCED__}" != "true" ]]; then
# TODO - finish
#

# TODO test for Distro name
function distro_is (
# TODO see:
# https://www.freedesktop.org/software/systemd/man/os-release.html
Expand All @@ -57,12 +58,13 @@ if [[ "${__INITPC_PRELUDE_SOURCED__}" != "true" ]]; then
# https://www.commandlinux.com/man-page/man5/os-release.5.html
# https://unix.stackexchange.com/questions/351557/on-what-linux-distributions-can-i-rely-on-the-presence-of-etc-os-release
source /etc/os-release

# TODO print the distro name and version every time
if [[ "${PRETTY_NAME}" != "$1" ]]; then
echo "Error: The OS is ${PRETTY_NAME} but should be $1! Aborting."
exit ${EXIT_INCORRECT_PLATFORM}
fi

exit ${EXIT_SUCCESS}
)
# TODO function version_gt
fi

0 comments on commit 8b95c95

Please sign in to comment.