Bug 1878 Speed up Artifactory search
[osm/devops.git] / common / track
index 627c680..615286a 100644 (file)
@@ -54,19 +54,20 @@ function track(){
         final_query_string="${final_query_string}&tags=${tags}"
         url="https://osm.etsi.org/InstallLog.php?${final_query_string}"
         echo "Track $osm_track_event_name $operation: ${url}"
-        wget -q -O /dev/null $url
+        LANG=C wget -q -O /dev/null "$url"
     else
         while (( "$#" > 0 )); do
             operation="${1:-${osm_track_event_name}}"
             shift 1
             value="${1:-}"
+            value="${value// /_}"
             shift 1
             comment="${1:-}"
-            shift 1
             comment="${comment// /_}"
-            tags="${1:-}"
             shift 1
+            tags="${1:-}"
             tags="${tags//,/\~}"
+            shift 1
             [ "$value" == "none" ] && value=""
             [ "$comment" == "none" ] && comment=""
             [ "$tags" == "none" ] && tags=""
@@ -77,7 +78,7 @@ function track(){
             final_query_string="${final_query_string}&tags=${tags}"
             url="https://osm.etsi.org/InstallLog.php?${final_query_string}"
             echo "Track $osm_track_event_name $operation: ${url}"
-            wget -q -O /dev/null $url
+            LANG=C wget -q -O /dev/null "$url"
         done
     fi
     return 0