StreamOverlay/submodules/update_addons.sh
Mario Steele 3186e514e6 Created Update Addons Script
Created script to copy over addons from the submodules folder, to the
addons folder.
2026-03-06 22:42:37 -06:00

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."