feat: enabled opt
This commit is contained in:
parent
9ccf7dc444
commit
5d479b646c
1 changed files with 4 additions and 0 deletions
4
dot
4
dot
|
@ -41,10 +41,14 @@ get_command() {
|
||||||
|
|
||||||
# only run this *in crate dir*
|
# only run this *in crate dir*
|
||||||
run_crate() {
|
run_crate() {
|
||||||
|
enabled=1
|
||||||
include ./crate.sh || exit 1
|
include ./crate.sh || exit 1
|
||||||
if [ -n "$describe" ]; then
|
if [ -n "$describe" ]; then
|
||||||
echo "desc($(basename $PWD)): $describe"
|
echo "desc($(basename $PWD)): $describe"
|
||||||
fi
|
fi
|
||||||
|
if [ $enabled -ne 1 ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
cmd=$(get_command $1)
|
cmd=$(get_command $1)
|
||||||
scripts=${scripts:-"@self @distro"}
|
scripts=${scripts:-"@self @distro"}
|
||||||
for s in $scripts; do
|
for s in $scripts; do
|
||||||
|
|
Loading…
Reference in a new issue