Author: dreimer Date: Tue Nov 25 10:43:42 2008 New Revision: 37639
URL: http://svn.reactos.org/svn/reactos?rev=37639&view=rev Log: God. I hate Batch Hacks soo much.
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1 URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershel... ============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1 [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1 [iso-8859-1] Tue Nov 25 10:43:42 2008 @@ -85,15 +85,17 @@ # # First check for a new Updater. # -$_ROSBE_UPDDATE = get-content update.ps1 +rename-item update.ps1 update2.ps1 &"$_ROSBE_BASEDIR\Tools\wget.exe" -N --ignore-length --no-verbose $_ROSBE_URL/update.ps1 2>&1> $null -$_ROSBE_UPDDATE = get-content update.ps1 -if ($_ROSBE_UPDDATE -ne $_ROSBE_UPDDATE2) { +if ((gi .\update.ps1).LastWriteTime -gt (gi .\update2.ps1).LastWriteTime) { clear-host "Updater got updated and needs to be restarted." + remove-item update2.ps1 -force EOC +} else { + remove-item update.ps1 -force + rename-item update2.ps1 update.ps1 } - # # Get to the Updates Subfolder. #