From 8830d60dae428bcdc37244cc2cc6a41900d0ab78 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 9 May 2020 01:40:40 +0900 Subject: rbuninstall.rb: print output record separator instead of $\ --- tool/rbuninstall.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tool/rbuninstall.rb b/tool/rbuninstall.rb index eb324c966e..736213f4fb 100755 --- a/tool/rbuninstall.rb +++ b/tool/rbuninstall.rb @@ -27,9 +27,10 @@ $_ = File.join($destdir, $_) if $destdir list << $_ END { status = true - $\ = ors = (!$dryrun and $tty) ? "\e[K\r" : "\n" + $\ = nil + ors = (!$dryrun and $tty) ? "\e[K\r" : "\n" $files.each do |file| - print "rm #{file}" + print "rm #{file}#{ors}" unless $dryrun begin File.unlink(file) @@ -45,7 +46,7 @@ END { unlink[dir] = true end while dir = $dirs.pop - print "rmdir #{dir}" + print "rmdir #{dir}#{ors}" unless $dryrun begin begin @@ -65,7 +66,6 @@ END { end end end - $\ = nil print ors.chomp exit(status) } -- cgit v1.2.3