16 lines
346 B
Bash
Executable file
16 lines
346 B
Bash
Executable file
#!/bin/bash
|
|
|
|
for dir in ./*; do
|
|
if [ -d "$dir" ]; then
|
|
if [[ "$dir" == "./" ]]; then
|
|
continue
|
|
fi
|
|
cd "$dir" || exit
|
|
f=$(echo "$dir" | sed 's/\.\///')
|
|
nimble install -y
|
|
if [[ $1 == "install" ]]; then
|
|
sudo cp -v "$f" "/usr/local/bin/$f"
|
|
fi
|
|
cd ../
|
|
fi
|
|
done
|