Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 91d7661

Browse files
committed
Disable command echo in pg_upgrade-created windows scripts
This makes them more like the Unix equivalents. Discussion: https://postgr.es/m/73deed30-3363-44e9-48a5-98aa66a8a00f@dunslane.net
1 parent 6feebcb commit 91d7661

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/pg_upgrade/pg_upgrade.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ extern char *output_files[];
7777
#define pg_mv_file pgrename
7878
#define PATH_SEPARATOR '\\'
7979
#define PATH_QUOTE '"'
80-
#define RM_CMD "DEL /q"
81-
#define RMDIR_CMD "RMDIR /s/q"
80+
/* @ prefix disables command echo in .bat files */
81+
#define RM_CMD "@DEL /q"
82+
#define RMDIR_CMD "@RMDIR /s/q"
8283
#define SCRIPT_PREFIX ""
8384
#define SCRIPT_EXT "bat"
8485
#define EXE_EXT ".exe"

0 commit comments

Comments
 (0)