diff options
Diffstat (limited to 'savelocaltweaks')
-rwxr-xr-x | savelocaltweaks | 2 |
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 |