Created script to copy over addons from the submodules folder, to the addons folder.
14 lines
304 B
Bash
Executable file
14 lines
304 B
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
for dir in "$SCRIPT_DIR"/*; do
|
|
if [ -d "$dir" ]; then
|
|
echo Found $dir.
|
|
if [ -d "$dir/addons" ]; then
|
|
rsync -av $dir/addons $SCRIPT_DIR/../
|
|
fi
|
|
fi
|
|
done
|
|
|
|
echo "Submodule addons updated."
|