File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818set -e
1919timestamp=
2020keepsuffix=
21- empty=
21+ srcavail=f
2222color=auto
2323until [ $# -eq 0 ]; do
2424 case " $1 " in
@@ -39,7 +39,7 @@ until [ $# -eq 0 ]; do
3939 keepsuffix=` expr \( " $1 " : ' [^=]*=\(.*\)' \) `
4040 ;;
4141 --empty)
42- empty=yes
42+ srcavail=s
4343 ;;
4444 --color)
4545 color=always
9797
9898targetdir=
9999case " $target " in * /* ) targetdir=` dirname " $target " ` ;; esac
100- if [ -f " $target " -a ! -${empty : +f}${empty :- s } " $temp " ] || cmp " $target " " $temp " > /dev/null 2>&1 ; then
100+ if [ -f " $target " -a ! -${srcavail } " $temp " ] || cmp " $target " " $temp " > /dev/null 2>&1 ; then
101101 echo " $target ${msg_unchanged} unchanged${msg_reset} "
102102 rm -f " $temp "
103103else
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ set src=%src:/=\%
6262
6363if exist %dest% (
6464 if not exist %src% goto :nt_unchanged1
65- if " %empty% " == " " for %%I in (%src% ) do if %%~zI == 0 goto :nt_unchanged
65+ if not " %empty% " == " " for %%I in (%src% ) do if %%~zI == 0 goto :nt_unchanged
6666 fc.exe %dest% %src% > nul && (
6767 :nt_unchanged
6868 del %src%
You can’t perform that action at this time.
0 commit comments