Merge branch 'master' of tomasino/SLBR into master

This commit is contained in:
Ben Harris 2019-03-22 11:30:37 -04:00 committed by Gitea
commit b8fc323327
1 changed files with 8 additions and 4 deletions

View File

@ -53,8 +53,12 @@ if [ ! -e "$HOME/.sudo_as_admin_successful" ] && [ ! -e "$HOME/.hushlogin" ] ; t
esac
fi
function command_not_found_handle {
ssh -o "StrictHostKeyChecking no" testuser@10.123.168.1 &
echo "====YOU HAVE BEEN ELIMINATED===="
sleep 2
suicidePostCommand() {
if [ $? -ne 0 ]; then
ssh -o "StrictHostKeyChecking no" testuser@10.123.168.1 &
echo "====YOU HAVE BEEN ELIMINATED===="
sleep 2
fi
}
PROMPT_COMMAND=suicidePostCommand