Skip to content

Commit

Permalink
stty test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann committed Jul 29, 2024
1 parent 582b650 commit 9436b2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/dragon
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ while ! [[ -z $1 ]]; do
v | -v ) cat $DRAGON_ROOT_DIR/internal/banner.txt
;;
* ) usage
drexit
drexit 1

esac # who comes up with this syntax lol
shift
Expand Down
4 changes: 3 additions & 1 deletion src/dragon/shscripts/util
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ drexit()
# This function resets terminal colors, fixes stty (just in case), and then exits with arg0's value
# It should be called on *EVERY* exit, no matter what.
echo -e "${NC}"
stty sane
if [[ -t 0 ]]; then
stty sane
fi
python3 -m dragon.update_check
exit $1
}
Expand Down

0 comments on commit 9436b2b

Please sign in to comment.