Skip to content

Instantly share code, notes, and snippets.

#Requires -Version 5
# Version 1.3.7
# check if newer version
$gistUrl = "https://api.github.com/gists/b01b44eaf57400f3bead53baab531de3"
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version')
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"
if ([System.IO.File]::Exists($latestVersionFile)) {