dotfiles/lib/crates.lib.sh
2023-09-01 01:40:41 +02:00

13 lines
235 B
Bash

#!/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
}