projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented feisty meow events log file
[feisty_meow.git]
/
scripts
/
core
/
functions.sh
diff --git
a/scripts/core/functions.sh
b/scripts/core/functions.sh
index fc5ce4ebc677daf6270acb850cda42688c803eaf..b1c6096dddeb85234e68a200331eba799de7cc3a 100644
(file)
--- a/
scripts/core/functions.sh
+++ b/
scripts/core/functions.sh
@@
-144,7
+144,7
@@
if [ -z "$skip_all" ]; then
function exit_on_error()
{
if [ $? -ne 0 ]; then
function exit_on_error()
{
if [ $? -ne 0 ]; then
- echo -e "\n\na
ction failed:
$*\n\n*** Exiting script..."
+ echo -e "\n\na
n important action failed and this script will stop:\n\n
$*\n\n*** Exiting script..."
error_sound
exit 1
fi
error_sound
exit 1
fi
@@
-154,13
+154,21
@@
if [ -z "$skip_all" ]; then
function continue_on_error()
{
if [ $? -ne 0 ]; then
function continue_on_error()
{
if [ $? -ne 0 ]; then
- echo -e "\n\n
error occurred:
$*\n\n=> Continuing script..."
+ echo -e "\n\n
a problem occurred, but we can continue:\n\n
$*\n\n=> Continuing script..."
error_sound
fi
}
##############
error_sound
fi
}
##############
+ # accepts any number of arguments and outputs them to the feisty meow event log.
+ function log_feisty_meow_event()
+ {
+ echo -e "$(date_stringer) -- $(basename $0):\t\t$*" >> "$FEISTY_MEOW_EVENT_LOG"
+ }
+
+ ##############
+
# wraps secure shell with some parameters we like, most importantly to enable X forwarding.
function ssh()
{
# wraps secure shell with some parameters we like, most importantly to enable X forwarding.
function ssh()
{