Skip to content

Commit

Permalink
[Issue #16] Removed bugfix that executed "reset" on the terminal to e…
Browse files Browse the repository at this point in the history
…nable local echo again. That bug doesn't reproduce anymore
  • Loading branch information
ml0renz0 committed Oct 11, 2018
1 parent 85174b0 commit 344e5fd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vcli
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# vcli internal variables
declare SCRIPTNAME
SCRIPTNAME="$(basename "$0")"
declare VERSION="0.4.4"
declare VERSION="0.4.5"
declare VERBOSE=${VERBOSE:-"no"}
declare DEBUG=${DEBUG:-"no"}
declare DEBUG_HEXDUMP="no"
Expand Down Expand Up @@ -423,10 +423,12 @@ function check_arg(){
function clean_n_exit(){
save_history
[[ ! $disable_prompt ]] && echo
## REMOVED: it seems this bug doesn't reproduce anymore ##
#
# reset terminal when running inside a container as local echo gets disabled (??)
if ! head -n 1 /proc/1/sched | grep -qE "(systemd|init)"; then
reset
fi
# if ! head -n 1 /proc/1/sched | grep -qE "(systemd|init)"; then
# reset
# fi
if [[ ! $http_code =~ ^2 ]]; then exit_status=1 ; fi
exit $exit_status
}
Expand Down

0 comments on commit 344e5fd

Please sign in to comment.