Add a logging of the next command to be executed.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
for path in rel_prep['paths_to_create']:
korg_path += '/' + path
if (not args.kup_test):
+ logwrite("create directory: %s" % korg_path)
logwrite(kup.mkdir(korg_path))
if (not args.kup_test):
+ logwrite("upload file %s to %s" % (bzip2_name, korg_path))
logwrite(kup.put(bzip2_name, tar_name + '.asc', korg_path))
logwrite("\nFinished upload!\n")
logwrite("Target path contents:")