tweaking....

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-07-13 22:12:39 +03:00
parent 5ef973d2a4
commit 71847b3856

View File

@ -49,7 +49,12 @@ DISABLED_PLUGINS=(
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# helpers... # helpers...
SCRIPT=`basename $0` # when sourcing a script $0 is set to '-bash'...
if [ "$0" = "-bash" ] ; then
SCRIPT=bashctrl
else
SCRIPT=`basename $0`
fi
function printhelp(){ cat << EOF function printhelp(){ cat << EOF
Bash control script Bash control script
@ -254,7 +259,9 @@ while true; do
for plugin in ${BASH_DIR}/events/$2/* ; do for plugin in ${BASH_DIR}/events/$2/* ; do
[ $plugin == "README" ] \ [ $plugin == "README" ] \
&& continue && continue
echo " --- $plugin: pre"
source $plugin $2 source $plugin $2
echo " --- $plugin: post"
done done
shift shift
break break