Skip to content

Commit eb6e83c

Browse files
committed
Fix SyntaxWarning and shebang
1 parent 5e41408 commit eb6e83c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

atomic-update

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/python3
22
#
33
# SPDX-License-Identifier: GPL-3.0-only
44
#
@@ -28,7 +28,7 @@ from shlex import quote
2828
import xml.etree.ElementTree as ET
2929

3030
# Constants
31-
VERSION = "0.1.18"
31+
VERSION = "0.1.19"
3232
ZYPPER_PID_FILE = "/run/zypp.pid"
3333
VALID_CMD = ["dup", "run", "rollback"]
3434
VALID_OPT = ["--reboot", "--apply", "--shell", "--continue", "--no-verify", \
@@ -492,7 +492,7 @@ chroot {TMP_MOUNT_DIR} mount -a -O no_netdev;
492492
if SHELL:
493493
logging.info(f"Opening bash shell within chroot of snapshot {atomic_snap}")
494494
logging.info("Continue with 'exit 0' or discard with 'exit 1'")
495-
command = f"""
495+
command = rf"""
496496
chroot {TMP_MOUNT_DIR} bash -c "export PS1='atomic-update:\${{PWD}} # '; exec bash"
497497
"""
498498
ret = os.system(command)

0 commit comments

Comments
 (0)