mirror of
https://github.com/flynx/bashctrl.git
synced 2025-10-28 18:30:10 +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...
|
# 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user