tiody
This commit is contained in:
parent
e018c8f985
commit
669707f14a
1 changed files with 0 additions and 26 deletions
|
@ -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
|
Loading…
Reference in a new issue