Skip to content

Commit

Permalink
add: 24.04 support (#1883)
Browse files Browse the repository at this point in the history
Co-authored-by: David <[email protected]>
  • Loading branch information
M4r71nW and daGscheid authored May 25, 2024
1 parent 33b5aeb commit 5938d72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const display = async (osResponse, suResponse) => {
const suData = await suResponse;
const osName = osData && osData.hasOwnProperty("name") && osData.name ? osData.name : "";
const osVers = osData && osData.hasOwnProperty("version") && osData.version ? osData.version : "";
if (osName == "Ubuntu" && osVers == "22.04") {
message.value = osName.toUpperCase() + " " + supportMessage;
if (osName === "Ubuntu" && (osVers === "22.04" || osVers === "24.04")) {
message.value = osName.toUpperCase() + " " + osVers + " " + supportMessage;
if (suData.rc) {
// Description of return codes (suData.rc):
// 1 = FAIL: user can not sudo without password!
Expand Down

0 comments on commit 5938d72

Please sign in to comment.