wmtools/compile_urrl.sh

17 lines
346 B
Bash
Raw Normal View History

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