fuckING
This commit is contained in:
parent
e0a625853d
commit
28e46f6f51
@ -33,7 +33,7 @@ def sync(args):
|
|||||||
if args['bwlimit'] >= 1:
|
if args['bwlimit'] >= 1:
|
||||||
opts.insert(10, '--bwlimit=' + str(args['bwlimit'])) # limit socket I/O bandwidth
|
opts.insert(10, '--bwlimit=' + str(args['bwlimit'])) # limit socket I/O bandwidth
|
||||||
for k in ('destination', 'logfile', 'lockfile'):
|
for k in ('destination', 'logfile', 'lockfile'):
|
||||||
os.makedirs(args[k], exist_ok = True)
|
os.makedirs(os.path.dirname(args[k]), exist_ok = True)
|
||||||
paths = os.environ['PATH'].split(':')
|
paths = os.environ['PATH'].split(':')
|
||||||
rsync = '/usr/bin/rsync' # set the default
|
rsync = '/usr/bin/rsync' # set the default
|
||||||
for p in paths:
|
for p in paths:
|
||||||
|
Loading…
Reference in New Issue
Block a user