diff --git a/scripts/update-to-master.php b/scripts/update-to-master.php
index <HASH>..<HASH> 100644
--- a/scripts/update-to-master.php
+++ b/scripts/update-to-master.php
@@ -82,8 +82,8 @@ deleteCacheFolder('cache/trl');
 $c = file(".gitignore", FILE_IGNORE_NEW_LINES);
 $c[] = '/build';
 $c[] = '/vendor';
-$c[] = 'bower.json';
-$c[] = '.bowerrc';
+$c[] = '/bower.json';
+$c[] = '/.bowerrc';
 $c = array_filter($c); //remove empty lines
 $c = array_unique($c);
 file_put_contents('.gitignore', implode("\n", $c)."\n");
specify gitignore path with / so our sync doesn't use this isgnore in subfolders