diff options
author | SSYSS000 <jaessys@protonmail.com> | 2021-09-14 10:02:43 +0300 |
---|---|---|
committer | Arkadiusz Hiler <ahiler@codeweavers.com> | 2021-09-30 13:48:37 +0300 |
commit | d368e283ca8448751a23f16b946c82ff263405ed (patch) | |
tree | bfddf952843cc277aeefd41276d41c0c5ddf944e | |
parent | dd66702ecd242c5a928d52548407352fd473568b (diff) |
proton: Delete PID leading zeros instead of all zeros
-rwxr-xr-x | proton | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |