~egtann/cup

f45c41d3dd8a72fda1305a9d6c1860444c72bd0c — Evan Tann 5 months ago 3da256d
fix mv bug copying absolute filepaths to wrong place
1 files changed, 6 insertions(+), 2 deletions(-)

M cup.go
M cup.go => cup.go +6 -2
@@ 246,8 246,12 @@ func run() error {
		}
		mvRemote := man.Default.Remote
		if opts.Remote != "" {
			mvRemote = filepath.Join(man.Default.Remote,
				filepath.Base(opts.Remote))
			if filepath.IsAbs(opts.Remote) {
				mvRemote = opts.Remote
			} else {
				mvRemote = filepath.Join(man.Default.Remote,
					opts.Remote)
			}
		}
		if !filepath.IsAbs(opts.Remote) {
			remoteFile := file