Skip to content

Commit 7250900

Browse files
committed
WIP
1 parent f883f8c commit 7250900

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build/helpers/postgres.cmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ SET GIT_PATH=git://git.postgresql.org/git/postgresql.git
2626
)
2727

2828
IF NOT "%GIT_BRANCH%"=="" (
29-
rm -rf %BUILD_DIR%\postgresql
30-
MKDIR %BUILD_DIR%\postgresql
31-
MKDIR %BUILD_DIR%\postgresql\postgresql-%PGVER%
32-
git clone -b %GIT_BRANCH% %GIT_PATH% %BUILD_DIR%\postgresql\postgresql-%PGVER%
29+
rm -rf %BUILD_DIR%\postgresql || GOTO :ERROR
30+
MKDIR %BUILD_DIR%\postgresql || GOTO :ERROR
31+
MKDIR %BUILD_DIR%\postgresql\postgresql-%PGVER% || GOTO :ERROR
32+
git clone -b %GIT_BRANCH% %GIT_PATH% %BUILD_DIR%\postgresql\postgresql-%PGVER% || GOTO :ERROR
3333
CD /D %BUILD_DIR%\postgresql\*%PGVER%* || GOTO :ERROR
3434

3535
GOTO :NOTAR
3636
)
3737
wget --no-check-certificate %PGURL% -O postgresql-%PGVER%.tar.bz2 || GOTO :ERROR
38-
rm -rf %BUILD_DIR%\postgresql
39-
MKDIR %BUILD_DIR%\postgresql
40-
tar xf postgresql-%PGVER%.tar.bz2 -C %BUILD_UDIR%/postgresql
38+
rm -rf %BUILD_DIR%\postgresql || GOTO :ERROR
39+
MKDIR %BUILD_DIR%\postgresql || GOTO :ERROR
40+
tar xf postgresql-%PGVER%.tar.bz2 -C %BUILD_UDIR%/postgresql || GOTO :ERROR
4141
CD /D %BUILD_DIR%\postgresql\*%PGVER%* || GOTO :ERROR
4242

4343
:NOTAR

0 commit comments

Comments
 (0)