dotfiles/lib/crates.lib.sh

14 lines
235 B
Bash
Raw Permalink Normal View History

2023-09-01 01:40:41 +02:00
#!/bin/sh
crates() {
for c in $(find ./crates -mindepth 1 -maxdepth 1 -type d); do
[ -f "$c/crate.sh" ] && echo $(basename $c)
done
}
crate_runner() {
[ -d "$1" ] || return 1
sh ./lib/crate-runner.sh $1 $2
}