summaryrefslogtreecommitdiff
path: root/rebrand.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rebrand.sh')
-rwxr-xr-xrebrand.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/rebrand.sh b/rebrand.sh
index b34e872..fe49821 100755
--- a/rebrand.sh
+++ b/rebrand.sh
@@ -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