Skip to content

Commit fce3aff

Browse files
committed
Fixing missing leading slash error
1 parent dd5220c commit fce3aff

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

stashcp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,9 @@ def main():
643643
source=opts[0]
644644
destination=opts[1]
645645

646+
if not source.startswith("/"):
647+
source = "/" + source
648+
646649
# Check for manually entered cache to use
647650
if 'NEAREST_CACHE' in os.environ:
648651
nearest_cache = os.environ['NEAREST_CACHE']

0 commit comments

Comments
 (0)