summaryrefslogtreecommitdiff
path: root/scripts/brp-python-hardlink
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/brp-python-hardlink')
-rwxr-xr-xscripts/brp-python-hardlink4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/brp-python-hardlink b/scripts/brp-python-hardlink
index 5453866eb..f88719982 100755
--- a/scripts/brp-python-hardlink
+++ b/scripts/brp-python-hardlink
@@ -10,8 +10,8 @@ fi
find "$RPM_BUILD_ROOT" -type f -name "*.pyc" | while read pyc ; do
pyo="${pyc%c}o"
if [ -f "$pyo" ] ; then
- csha="$(sha1sum -b $pyc | cut -d' ' -f 1)" && \
- osha="$(sha1sum -b $pyo | cut -d' ' -f 1)" && \
+ csha="$(sha1sum -b "$pyc" | cut -d' ' -f 1)" && \
+ osha="$(sha1sum -b "$pyo" | cut -d' ' -f 1)" && \
if [ "$csha" = "$osha" ] ; then
ln -f "$pyc" "$pyo"
fi