$APP_CONST_FILE = $(split-path $MyInvocation.MyCommand.Definition) + "\..\src\cf\app_constants.go"
$APP_CONST_FILE_TMP = $APP_CONST_FILE + ".tmp"

get-content $APP_CONST_FILE | %{$_ -replace "SHA", ${git rev-parse --short HEAD}} > $APP_CONST_FILE_TMP
mv -Force $APP_CONST_FILE_TMP $APP_CONST_FILE

$APP_CONST_FILE = $(split-path $MyInvocation.MyCommand.Definition) + "\..\src\cf\app_constants.go"
$APP_CONST_FILE_TMP = $APP_CONST_FILE + ".tmp"

get-content $APP_CONST_FILE | %{$_ -replace "SHA", $(git rev-parse --short HEAD)} > $APP_CONST_FILE_TMP
mv -Force $APP_CONST_FILE_TMP $APP_CONST_FILE

Fix interpolation of git SHA in powershell command
Fix interpolation of git SHA in powershell command

Signed-off-by: Stephen Levine <72d5489bdb659bea8b15ba0173fe796f11329883@pivotallabs.com>
