Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

functions.sh: Add failed commands to shell history.

It's nice to be able to just hit the up arrow to try the command again,
especially in the case when cryptsetup fails due to invalid password
entry, and you'd like a quick extra chance at entering your 93 character
long military grade password.

Signed-off-by: Piotr Karbowski <piotr.karbowski@gmail.com>
  • Loading branch information...
commit ddb1076700e6317a29998170d546ea3a95bc8430 1 parent 853f838
@zx2c4 zx2c4 authored Piotr Karbowski committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  sourceroot/functions.sh
View
1  sourceroot/functions.sh
@@ -37,6 +37,7 @@ run() {
else
eerror "'$@' failed."
echo "Failed: '$@'" >> /init.log
+ echo "$@" >> /.ash_history
rescueshell
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.