Skip to content

Commit

Permalink
Fix output chrome (#61)
Browse files Browse the repository at this point in the history
* fix - output when threat isn't found chrome

* fix - typo uppercase

* fix - type chrome windows

---------

Co-authored-by: Pierre Lamusse <[email protected]>
  • Loading branch information
PierreLamusse and 42plamusse authored Apr 10, 2024
1 parent 164f914 commit c722b23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion threatmodel-Windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
{
Expand Down
4 changes: 2 additions & 2 deletions threatmodel-macOS.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
{
Expand All @@ -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": {
Expand Down

0 comments on commit c722b23

Please sign in to comment.