From 0df1b288a6c7e416a0b476fe358d010fe5b20575 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 27 Aug 2020 05:01:10 +0300 Subject: [PATCH] bin/screen: Return exit code of `screen`, not `test`/`tput` --- bin/screen | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/screen b/bin/screen index b2fbe11..1b47d5a 100755 --- a/bin/screen +++ b/bin/screen @@ -5,5 +5,6 @@ if [ "$1" = "-ls" -o "$1" = "--list" ]; then fi test "$list" = true || tput smcup -/usr/bin/screen "$@" +/usr/bin/screen "$@"; rc=$? test "$list" = true || tput rmcup +exit $rc -- 2.39.5