mirror of
https://github.com/flynx/bashctrl.git
synced 2025-10-28 10:20:11 +00:00
tweaking....
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5ef973d2a4
commit
71847b3856
9
bashctrl
9
bashctrl
@ -49,7 +49,12 @@ DISABLED_PLUGINS=(
|
||||
#----------------------------------------------------------------------
|
||||
# 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
|
||||
Bash control script
|
||||
@ -254,7 +259,9 @@ while true; do
|
||||
for plugin in ${BASH_DIR}/events/$2/* ; do
|
||||
[ $plugin == "README" ] \
|
||||
&& continue
|
||||
echo " --- $plugin: pre"
|
||||
source $plugin $2
|
||||
echo " --- $plugin: post"
|
||||
done
|
||||
shift
|
||||
break
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user