1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-04-07 16:41:59 +00:00

Make '=' shorthand for destionation being current directory

This commit is contained in:
dschmenk 2023-03-19 13:57:13 -07:00
parent 0d585d7110
commit 6fc53c4c21

View File

@ -217,6 +217,9 @@ if not except(exit)
pathcpy(@dstpath, arg)
arg = argNext(arg)
loop
if dstpath[0] == 1 and dstpath[1] == '='
fileio:getpfx(@dstpath)
fin
if not chkdstpath(@dstpath) and (srccnt > 1 or isWildName(srcfilelist))
puts("Destination must be a directory: "); puts(@dstpath); putln
return