From 5d479b646cc582479c5e16285bd537769baf1f79 Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:14 +0200 Subject: [PATCH] feat: enabled opt --- dot | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot b/dot index bfcd9f0..6c2a942 100755 --- a/dot +++ b/dot @@ -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