]> git.phdru.name Git - dotfiles.git/commitdiff
bin/screen: Return exit code of `screen`, not `test`/`tput`
authorOleg Broytman <phd@phdru.name>
Thu, 27 Aug 2020 02:01:10 +0000 (05:01 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 27 Aug 2020 02:03:02 +0000 (05:03 +0300)
bin/screen

index b2fbe116a5f313fb9625c8382e396b4dd3ba2aab..1b47d5afcd7a019990ed8232eaf1773acf84df33 100755 (executable)
@@ -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