diff options
author | Eric Wong <e@80x24.org> | 2022-01-15 06:11:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-01-16 08:03:52 +0000 |
commit | f0da7e664140cb1000d22db5509168b3d82b728b (patch) | |
tree | c9b0ab07cc3ef2a3eee547a57e50b7a7809c4f8f | |
parent | 7cf055bb98a8be913ff3a2b03ef2ed2528e61db8 (diff) | |
download | dtas-f0da7e664140cb1000d22db5509168b3d82b728b.tar.gz |
Debian bullseye users are stuck with ruby-curses 1.2.4, which means they'll hit rb_safe_level warnings with Ruby 2.7+. cf. https://bugs.debian.org/958973
-rwxr-xr-x | bin/dtas-console | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/dtas-console b/bin/dtas-console index 7a7ed6c..e02dda4 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -18,6 +18,9 @@ rescue LoadError abort "please install the 'curses' RubyGem to use #$0" end +# workaround https://bugs.debian.org/958973 +$VERBOSE = nil if RUBY_VERSION.to_f < 3.0 + tsec = false se = DTAS::Sigevent.new trap(:WINCH) { se.signal } |