projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops, wrong side of if.
[feisty_meow.git]
/
scripts
/
core
/
functions.sh
diff --git
a/scripts/core/functions.sh
b/scripts/core/functions.sh
index d25e71d7b03ad9e7362b4f01aa7bed32e891995f..e1efcc1845234e71f9c4784b4c2f38560d515970 100644
(file)
--- a/
scripts/core/functions.sh
+++ b/
scripts/core/functions.sh
@@
-4,18
+4,16
@@
# test whether we've been here before or not.
skip_all=
# test whether we've been here before or not.
skip_all=
-
date_stringer
&>/dev/null
+
function_sentinel
&>/dev/null
if [ $? -eq 0 ]; then
# there was no error, so we can skip the inits.
if [ $? -eq 0 ]; then
# there was no error, so we can skip the inits.
-
#
if [ ! -z "$SHELL_DEBUG" ]; then
+ if [ ! -z "$SHELL_DEBUG" ]; then
echo skipping functions.sh because already defined.
echo skipping functions.sh because already defined.
-# fi
+ fi
+ skip_all=yes
fi
fi
-echo proceeding to run functions.sh
-
if [ -z "$skip_all" ]; then
if [ -z "$skip_all" ]; then
-
if [ ! -z "$SHELL_DEBUG" ]; then
echo function definitions begin...
fi
if [ ! -z "$SHELL_DEBUG" ]; then
echo function definitions begin...
fi
@@
-207,6
+205,8
@@
if [ -z "$skip_all" ]; then
nechung
fi
}
nechung
fi
}
+
+ function function_sentinel() { return 0; }
if [ ! -z "$SHELL_DEBUG" ]; then echo function definitions end....; fi
if [ ! -z "$SHELL_DEBUG" ]; then echo function definitions end....; fi