This commit is contained in:
Paul Wilde 2023-11-23 11:10:25 +00:00
parent e018c8f985
commit 669707f14a

View file

@ -1,26 +0,0 @@
#!/bin/bash
build () {
dir="$1"
i="$2"
cd "./$dir" || exit
f=$(echo "$dir" | sed 's/\.\///')
nimble install -y
if [[ $i == "install" ]]; then
cp -v "$f" "$HOME/.local/bin/$f"
fi
cd ../
}
if [[ $2 != "" ]]; then
build "$2" "$1"
exit
fi
for dir in ./*; do
if [ -d "$dir" ]; then
if [[ "$dir" == "./" ]]; then
continue
fi
build "$dir" "$1"
fi
done