summaryrefslogtreecommitdiff
path: root/savelocaltweaks
diff options
context:
space:
mode:
Diffstat (limited to 'savelocaltweaks')
-rwxr-xr-xsavelocaltweaks2
1 files changed, 1 insertions, 1 deletions
diff --git a/savelocaltweaks b/savelocaltweaks
index b303cda..9262bf0 100755
--- a/savelocaltweaks
+++ b/savelocaltweaks
@@ -52,7 +52,7 @@ for file in `for x in $files; do echo $x; done | uniq | sort`; do
cp -af $basedir/$file $newdir
# Only diff against existing and non-empty files.
- if [ -n "$ext" ] && [ -s $basedir/$file$ext ]; then
+ if [ -n "$ext" ] && [ -s $basedir/$file ] && [ -s $basedir/$file$ext ]; then
diff -ruN $basedir/$file$ext $basedir/$file > $targetdir/$basedir/$file.diff
chown --reference=$basedir/$file $targetdir/$basedir/$file.diff
chmod --reference=$basedir/$file $targetdir/$basedir/$file.diff