Diff of /trunk/install.sh [r26] .. [r27]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/install.sh
+++ b/trunk/install.sh
@@ -116,12 +116,13 @@
 # start installation
 if [ -z "${TRY_RUN}" ]; then
 	# download and install the edge package
-	wget --output-document=/tmp/edge.package ${EDGE_URL} && \
+	[ ! -f /tmp/edge.package ] && wget --output-document=/tmp/edge.package ${EDGE_URL}
+    (
 	    unzip -p /tmp/edge.package '*.deb' > /tmp/edge.deb && \
-	    ${SUDO} dpkg -i /tmp/edge.deb
-
+        ${SUDO} dpkg -i /tmp/edge.deb
+    )
 	# download and install the control package
-	wget --output-document=/tmp/codesys.package ${URL} && \
+	[ ! -f /tmp/codesys.package ] && wget --output-document=/tmp/codesys.package ${URL}
 	(
 	    unzip -p /tmp/codesys.package '*codemeter*.deb' > /tmp/codemeter.deb && \
 	    ${SUDO} dpkg -i /tmp/codemeter.deb