Use "wget -N" for pgtap download
authorDan Scott <dscott@laurentian.ca>
Wed, 8 Mar 2017 14:24:58 +0000 (09:24 -0500)
committerDan Scott <dscott@laurentian.ca>
Wed, 8 Mar 2017 14:24:58 +0000 (09:24 -0500)
Otherwise, a repeated run will pause waiting for a response to a prompt to
overwrite the existing pgtap zip file.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
installer/jessie/eg_jessie_installer.sh
installer/wheezy/eg_wheezy_installer.sh

index c7806cf..97cc88f 100755 (executable)
@@ -450,7 +450,7 @@ function configure_database {
 
     if [ $LIVETEST ]; then
         PG_TAP_VER="0.97.0"
-        wget http://api.pgxn.org/dist/pgtap/$PG_TAP_VER/pgtap-$PG_TAP_VER.zip \
+        wget -N http://api.pgxn.org/dist/pgtap/$PG_TAP_VER/pgtap-$PG_TAP_VER.zip \
         && unzip pgtap-$PG_TAP_VER.zip \
         && cd pgtap-$PG_TAP_VER \
         && make \
index 837c4c2..5707e6b 100755 (executable)
@@ -458,7 +458,7 @@ function configure_database {
 
     if [ $LIVETEST ]; then
         PG_TAP_VER="0.97.0"
-        wget http://api.pgxn.org/dist/pgtap/$PG_TAP_VER/pgtap-$PG_TAP_VER.zip \
+        wget -N http://api.pgxn.org/dist/pgtap/$PG_TAP_VER/pgtap-$PG_TAP_VER.zip \
         && unzip pgtap-$PG_TAP_VER.zip \
         && cd pgtap-$PG_TAP_VER \
         && make \