Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSSYSS000 <jaessys@protonmail.com>2021-09-14 10:02:43 +0300
committerArkadiusz Hiler <ahiler@codeweavers.com>2021-09-30 13:48:37 +0300
commitd368e283ca8448751a23f16b946c82ff263405ed (patch)
treebfddf952843cc277aeefd41276d41c0c5ddf944e
parentdd66702ecd242c5a928d52548407352fd473568b (diff)
proton: Delete PID leading zeros instead of all zeros
-rwxr-xr-xproton2
1 files changed, 1 insertions, 1 deletions
diff --git a/proton b/proton
index 2c82e786..42ea687a 100755
--- a/proton
+++ b/proton
@@ -1185,7 +1185,7 @@ class Session:
f.write("#Run winedbg in gdb mode and auto-attach to already-running program\n\n")
f.write("cd \"" + os.getcwd() + "\"\n")
f.write("EXE_NAME=${1:-\"" + exe_name + "\"}\n")
- f.write("WPID_HEX=$(\"" + tmpdir + "winedbg\" --command 'info process' | grep -i \"$EXE_NAME\" | cut -f2 -d' ' | tr -d '0')\n")
+ f.write("WPID_HEX=$(\"" + tmpdir + "winedbg\" --command 'info process' | grep -i \"$EXE_NAME\" | cut -f2 -d' ' | sed -e 's/^0*//')\n")
f.write("if [ -z \"$WPID_HEX\" ]; then \n")
f.write(" echo \"Program does not appear to be running: \\\"$EXE_NAME\\\"\"\n")
f.write(" exit 1\n")