]> git.phdru.name Git - dotfiles.git/blobdiff - bin/screen
bin/screen: Return exit code of `screen`, not `test`/`tput`
[dotfiles.git] / 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