feat: enabled opt

This commit is contained in:
Strix 2023-10-14 22:38:14 +02:00
parent 9ccf7dc444
commit 5d479b646c
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

4
dot
View file

@ -41,10 +41,14 @@ get_command() {
# only run this *in crate dir*
run_crate() {
enabled=1
include ./crate.sh || exit 1
if [ -n "$describe" ]; then
echo "desc($(basename $PWD)): $describe"
fi
if [ $enabled -ne 1 ]; then
return
fi
cmd=$(get_command $1)
scripts=${scripts:-"@self @distro"}
for s in $scripts; do