Created Update Addons Script
Created script to copy over addons from the submodules folder, to the addons folder.
This commit is contained in:
parent
85ba302fe0
commit
3186e514e6
1 changed files with 14 additions and 0 deletions
14
submodules/update_addons.sh
Executable file
14
submodules/update_addons.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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."
|
||||
Loading…
Add table
Add a link
Reference in a new issue