From: Oleg Broytman Date: Thu, 27 Aug 2020 02:01:10 +0000 (+0300) Subject: bin/screen: Return exit code of `screen`, not `test`/`tput` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=0df1b288a6c7e416a0b476fe358d010fe5b20575;p=dotfiles.git bin/screen: Return exit code of `screen`, not `test`/`tput` --- 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