[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X Strike Force SVN commit: rev 305 - branches/4.3.0/sid/debian/scripts



Author: branden
Date: 2003-07-23 12:10:40 -0500 (Wed, 23 Jul 2003)
New Revision: 305

Modified:
   branches/4.3.0/sid/debian/scripts/manifest-install-reconcile
Log:
debian/scripts/manifest-install-reconcile: double-quote-protect shell
  variables that could conceivably have whitespace in them


Modified: branches/4.3.0/sid/debian/scripts/manifest-install-reconcile
==============================================================================
--- branches/4.3.0/sid/debian/scripts/manifest-install-reconcile	2003-07-23 17:08:51 UTC (rev 304)
+++ branches/4.3.0/sid/debian/scripts/manifest-install-reconcile	2003-07-23 17:10:40 UTC (rev 305)
@@ -37,16 +37,16 @@
 #   for several architectures.
 
 for F in MANIFEST.*; do
-    ARCH=$(echo $F | sed 's/MANIFEST\.//')
+    ARCH=$(echo "$F" | sed 's/MANIFEST\.//')
     echo $ARCH
     FILE=$(tempfile)
     for G in *.install; do
-        if [ -e $G.$ARCH ]; then
-            awk '{print $1}' < $G.$ARCH >> $FILE
+        if [ -e "$G.$ARCH" ]; then
+            awk '{print $1}' < "$G.$ARCH" >> "$FILE"
         else
-            awk '{print $1}' < $G >> $FILE
+            awk '{print $1}' < "$G" >> "$FILE"
         fi
     done
-    sort -u < $FILE > INSTALL.$ARCH
-    rm $FILE
+    sort -u < "$FILE" > "INSTALL.$ARCH"
+    rm "$FILE"
 done



Reply to: