Browse Source

apply-patches.sh: cleanup

Add quoting and remove redundant command.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Tested-by: Ludovic Desroches <ludovic.desroches@atmel.com>
with an armadeus_apf9328_defconfig build
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Ludovic Desroches 13 years ago
parent
commit
1b671d477b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      support/scripts/apply-patches.sh

+ 2 - 2
support/scripts/apply-patches.sh

@@ -54,8 +54,8 @@ for i in `cd ${patchdir}; ls -d ${patchpattern} 2> /dev/null` ; do
     esac fi
     esac fi
     echo ""
     echo ""
     echo "Applying ${i} using ${type}: " 
     echo "Applying ${i} using ${type}: " 
-	echo ${i} | cat >> ${builddir}/.applied_patches_list
-    ${uncomp} ${patchdir}/${i} ${uncomp_parm} | ${apply} ${builddir}
+	echo ${i} >> ${builddir}/.applied_patches_list
+    ${uncomp} "${patchdir}/${i}" ${uncomp_parm} | ${apply} "${builddir}"
     if [ $? != 0 ] ; then
     if [ $? != 0 ] ; then
         echo "Patch failed!  Please fix $i!"
         echo "Patch failed!  Please fix $i!"
 	exit 1
 	exit 1