#!/usr/bin/sh

cd modules/bootstrap

# Undo any changes
git reset --hard
rm scss/customvars.scss

# Fetch updates
git checkout master
git pull --rebase
git checkout v4.0.0-alpha.5

# Link and import our custom variables
sed -i -e '1i@import "customvars";\' scss/_variables.scss
ln -s ../../../sass/customvars.scss scss/

# Rebuild Bootstrap
grunt dist

#!/usr/bin/sh

cd modules/bootstrap

# Undo any changes
git reset --hard
rm scss/customvars.scss

# Fetch updates
git checkout master
git pull --rebase
git checkout v4.0.0-alpha.5

# Link and import our custom variables
echo '@import "customvars";' >> scss/_custom.scss
ln -s ../../../sass/customvars.scss scss/

# Rebuild Bootstrap
grunt dist

Modify _custom.scss instead of _variables.scss
Modify _custom.scss instead of _variables.scss
