update comment

Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
pull/7187/head
zwwhdls 6 years ago
parent 7f4ac180e3
commit 502ade05ff

@ -109,7 +109,7 @@ func (p *Pull) Run(chartRef string) (string, error) {
if !filepath.IsAbs(ud) { if !filepath.IsAbs(ud) {
ud = filepath.Join(p.DestDir, ud) ud = filepath.Join(p.DestDir, ud)
} }
// Let udCheck to check conflict file/dir without replacing ud when untarDir is . // Let udCheck to check conflict file/dir without replacing ud when untarDir is the current directory(.).
udCheck := ud udCheck := ud
if udCheck == "." { if udCheck == "." {
_, udCheck = filepath.Split(chartRef) _, udCheck = filepath.Split(chartRef)

Loading…
Cancel
Save