[PC-BSD Commits] r18072 - pcbsd/current/src-sh/pbi-manager
svn at pcbsd.org
svn at pcbsd.org
Wed Aug 1 11:05:40 PDT 2012
Author: kris
Date: 2012-08-01 18:05:40 +0000 (Wed, 01 Aug 2012)
New Revision: 18072
Modified:
pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:
Fix getting the sha256 of files with spaces in them when making patches
Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager 2012-08-01 17:38:47 UTC (rev 18071)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager 2012-08-01 18:05:40 UTC (rev 18072)
@@ -5972,8 +5972,8 @@
if [ -c "${1}/$line" ] ; then continue ; fi
# Check sha256 of each file, see if we have differences
- sha1="`sha256 -q ${1}/${line}`"
- sha2="`sha256 -q ${2}/${line}`"
+ sha1=`sha256 -q "${1}/${line}"`
+ sha2=`sha256 -q "${2}/${line}"`
if [ "$sha1" != "$sha2" ] ; then
# These files differ, get a binary patch made of them
_tDir="${3}/`dirname $line`"
More information about the Commits
mailing list