[solved] Bug in linux DownloadUpdates.sh script

[solved] Bug in linux DownloadUpdates.sh script

Postby Sepperlot1 » 14.11.2011, 13:26

Suggested changes:

Code: Select all
--- DownloadUpdates.sh.orig     2011-09-30 12:17:36.000000000 +0200
+++ DownloadUpdates.sh  2011-11-14 13:02:05.048854514 +0100
@@ -175,7 +175,7 @@
        lang="glb"
 fi
 sys_old=""
-if [ "$sys" == "o2k3" -o "$sys"=="o2k7" ]; then
+if [ "$sys" == "o2k3" -o "$sys" == "o2k7" ]; then
        sys_old=$sys
   sys="ofc"
 fi
@@ -611,7 +611,7 @@
 
 echo "Determining static URLs for ${sys} ${lang}..."
 
-if [ "$sys"=="ofc" ] && [ "$sys_old"!="" ]; then
+if [ "$sys" == "ofc" ] && [ "$sys_old" != "" ]; then
   echo "Determining static URLs for ${sys_old} ${lang}..."
    static1="../static/StaticDownloadLinks-${sys_old}-x86-${lang}.txt"
   if [ -f "$static1" ]; then
@@ -1067,7 +1067,7 @@
 fi
 doWget -i ../temp/StaticUrls-${sys}-glb.txt -P ../client/${sys}/glb
 
-if [ "$sys"=="ofc" ] && [ "$sys_old"!="" ]; then
+if [ "$sys" == "ofc" ] && [ "$sys_old" != "" ]; then
    doWget -i ../temp/StaticUrls-${sys_old}-${lang}.txt -P ../client/${sys_old}/${lang}
    doWget -i ../temp/StaticUrls-${sys_old}-glb.txt -P ../client/${sys_old}/glb
 fi
@@ -1133,7 +1133,7 @@
 fi
 doWget -i ../temp/StaticUrls-${sys}-glb.txt -P ../client/${sys}/glb
 
-if [ "$sys"=="ofc" ] && [ "$sys_old"!="" ]; then
+if [ "$sys" == "ofc" ] && [ "$sys_old" != "" ]; then
    doWget -i ../temp/StaticUrls-${sys_old}-${lang}.txt -P ../client/${sys_old}/${lang}
    doWget -i ../temp/StaticUrls-${sys_old}-glb.txt -P ../client/${sys_old}/glb
Sepperlot1
 

Re: Bug in linux DownloadUpdates.sh script

Postby harry » 14.11.2011, 13:45

Already fixed in version 7.1 :arrow: http://download.wsusoffline.net/wsusoffline71.zip

Code: Select all
177    sys_old=""
178    if [ "$sys" == "o2k3" -o "$sys" == "o2k7" -o "$sys" == "o2k10" ]; then
179            sys_old=$sys
180      sys="ofc"
181    fi
harry
 
Posts: 707
Joined: 29.10.2009, 17:02


Return to Linux

Who is online

Users browsing this forum: No registered users and 7 guests