mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-09 13:44:51 +08:00
Reformat file with black
This commit is contained in:
parent
9a3ee270e5
commit
4cae28e100
1 changed files with 4 additions and 2 deletions
|
|
@ -220,12 +220,14 @@ def auto_upgrader(
|
|||
)
|
||||
return False
|
||||
|
||||
backup_dist = os.path.join(tempfile.gettempdir(), "npbackup_backup_dist_" + random_string(6))
|
||||
backup_dist = os.path.join(
|
||||
tempfile.gettempdir(), "npbackup_backup_dist_" + random_string(6)
|
||||
)
|
||||
|
||||
# Inplace upgrade script, gets executed after main program has exited
|
||||
if os.name == "nt":
|
||||
cmd = (
|
||||
f'setlocal EnableDelayedExpansion &'
|
||||
f"setlocal EnableDelayedExpansion & "
|
||||
f'echo "Launching upgrade" >> "{log_file}" 2>&1 && '
|
||||
f'echo "Moving earlier dist from {CURRENT_DIR} to {backup_dist}" >> "{log_file}" 2>&1 && '
|
||||
f'move /Y "{CURRENT_DIR}" "{backup_dist}" >> "{log_file}" 2>&1 && '
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue