/
githubmirror
/
meteor
Обзор
Документация
Войти
/
githubmirror
/
meteor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
scripts/windows/check-dev-bundle.ps1
17 строк
723 B
Slava Kim
Check if current dev_bundle matches the dev_bundle required on Windows
21 янв 2015, 09:08
21 янв 2015, 09:08
369f2fa
Код
Авторство
О чём код?
$windows_scripts = split-path -parent $MyInvocation.MyCommand.Definition $scripts_path = split-path -parent $windows_scripts $CHECKOUT_DIR = split-path -parent $scripts_path # extract the bundle version from the meteor bash script $BUNDLE_VERSION = select-string -Path ($CHECKOUT_DIR + "\meteor") -Pattern 'BUNDLE_VERSION=(\S+)' | % { $_.Matches[0].Groups[1].Value } | select-object -First 1 $BUNDLE_VERSION = $BUNDLE_VERSION.Trim() # extract the bundle version we have on FS $CURRENT_VERSION = select-string -Path ($CHECKOUT_DIR + "\dev_bundle\.bundle_version.txt") -Pattern '(.*)' | % { $_.Matches[0].Captures[0].Value } | select-object -First 1 If ($CURRENT_VERSION -eq $BUNDLE_VERSION) { exit 0 } # fail exit 1