From c722b2347818a887d3367059109868a3cded5385 Mon Sep 17 00:00:00 2001 From: PierreLamusse <160901332+PierreLamusse@users.noreply.github.com> Date: Wed, 10 Apr 2024 09:38:22 +0200 Subject: [PATCH] Fix output chrome (#61) * fix - output when threat isn't found chrome * fix - typo uppercase * fix - type chrome windows --------- Co-authored-by: Pierre Lamusse --- threatmodel-Windows.json | 2 +- threatmodel-macOS.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/threatmodel-Windows.json b/threatmodel-Windows.json index 90b62a5..342ea4f 100644 --- a/threatmodel-Windows.json +++ b/threatmodel-Windows.json @@ -1333,7 +1333,7 @@ "description": [ { "locale": "EN", - "title": "Chrome Browser Not Up to Date", + "title": "Chrome browser not up to date", "summary": "Your Google Chrome browser is not up to date. Running the latest version ensures you have the latest security features and performance improvements." }, { diff --git a/threatmodel-macOS.json b/threatmodel-macOS.json index aaa6b1b..d4d1b6c 100644 --- a/threatmodel-macOS.json +++ b/threatmodel-macOS.json @@ -1792,7 +1792,7 @@ "description": [ { "locale": "EN", - "title": "Chrome Browser Not Up to Date", + "title": "Chrome browser not up to date", "summary": "Your Google Chrome browser is not up to date. Running the latest version ensures you have the latest security features and performance improvements." }, { @@ -1807,7 +1807,7 @@ "maxversion": 0, "class": "cli", "elevation": "user", - "target": "if defaults read /Applications/Google\\ Chrome.app/Contents/Info.plist CFBundleShortVersionString &>/dev/null; then latest_version=$(curl -s \"https://chromiumdash.appspot.com/fetch_releases?channel=Stable&platform=Mac&num=1\" | awk -F'[\"]' '{for(i=1;i<=NF;i++) if ($i==\"version\") {print $(i+2); exit}}'); local_version=$(defaults read /Applications/Google\\ Chrome.app/Contents/Info.plist CFBundleShortVersionString); if [ \"$latest_version\" = \"$local_version\" ]; then echo \"Chrome is up to date.\"; else echo \"Chrome is not up to date (Installed: $local_version, Latest: $latest_version)\"; fi; else echo \"Chrome not installed or not found.\"; fi", + "target": "if defaults read /Applications/Google\\ Chrome.app/Contents/Info.plist CFBundleShortVersionString &>/dev/null; then latest_version=$(curl -s \"https://chromiumdash.appspot.com/fetch_releases?channel=Stable&platform=Mac&num=1\" | awk -F'[\"]' '{for(i=1;i<=NF;i++) if ($i==\"version\") {print $(i+2); exit}}'); local_version=$(defaults read /Applications/Google\\ Chrome.app/Contents/Info.plist CFBundleShortVersionString); if [ \"$latest_version\" = \"$local_version\" ]; then echo \"\"; else echo \"Chrome is not up to date (Installed: $local_version, Latest: $latest_version)\"; fi; else echo \"\"; fi", "education": [] }, "remediation": {