File: patch-debuggers

package info (click to toggle)
ruby-mongo 2.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,020 kB
  • sloc: ruby: 110,810; makefile: 5
file content (18 lines) | stat: -rwxr-xr-x 519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Patches debuggers to not ask for confirmation on exit.
# byebug tracking issue: https://github.com/deivid-rodriguez/byebug/issues/404
# byebug proposed patch: https://github.com/deivid-rodriguez/byebug/pull/605

root="$1"
if test -z "$root"; then
  root=$HOME/.rbenv
fi

find "$root" -name quit.rb -path '*/byebug/*' -exec \
  sed -e '/quit.confirmations.really/d' -i {} \;

# JRuby ruby-debug

find "$root" -name quit.rb -path '*/ruby-debug/*' -exec \
  sed -e 's/confirm("Really quit.*")/true/' -i {} \;