diff options
Diffstat (limited to 'rebrand.sh')
-rwxr-xr-x | rebrand.sh | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -8,12 +8,22 @@ web_path="$2/traccar-web" function rebrand_assets { echo "Rebranding public assets..." - cp -rf "shared/public" "${web_path}" - cp -rf "${branding}/public" "${web_path}" + if [ -d "${branding}/public" ]; then + cp -rf "${branding}/public" "${web_path}" + fi +} + +function rebrand_resources { + echo "Rebranding app resources..." + + if [ -d "${branding}/resources" ]; then + cp -rf "${branding}/resources" "${web_path}/src" + fi } function main { rebrand_assets + rebrand_resources } main |