2022-07-17 00:07:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
for dir in ./*; do
|
|
|
|
if [ -d $dir ]; then
|
2022-07-17 21:04:49 +02:00
|
|
|
if [[ $dir == "./" ]]; then
|
|
|
|
continue
|
|
|
|
fi
|
2022-07-17 00:07:51 +02:00
|
|
|
cd $dir
|
|
|
|
f=$(echo $dir | sed 's/\.\///')
|
|
|
|
nimble install -y
|
2022-07-17 20:12:20 +02:00
|
|
|
if [[ $1 == "install" ]]; then
|
|
|
|
sudo cp -v $f /usr/local/bin/$f
|
|
|
|
fi
|
2022-07-17 00:07:51 +02:00
|
|
|
cd ../
|
|
|
|
fi
|
|
|
|
done
|