1
1
mirror of https://github.com/primer/css.git synced 2024-11-24 05:06:04 +03:00

reset tools, too

This commit is contained in:
Shawn Allen 2018-11-22 00:02:51 -08:00
parent c9451433fd
commit 7830f3cc6e

View File

@ -22,9 +22,10 @@ if [[ $flag = "--help" || $flag = "-h" ]]; then
echo echo
exit exit
elif [[ "$1" = "--reset" ]]; then elif [[ "$1" = "--reset" ]]; then
git reset modules dirs="modules tools"
rm -r modules git reset $dirs
git co -- modules rm -r $dirs
git co -- $dirs
exit exit
elif [[ "$1" = "--dry-run" ]]; then elif [[ "$1" = "--dry-run" ]]; then
DRY_RUN=1 DRY_RUN=1
@ -83,7 +84,7 @@ for dir in $modules; do
go perl -pi -e 's#primer-#../#' index.scss go perl -pi -e 's#primer-#../#' index.scss
go popd > /dev/null go popd > /dev/null
go git rm -r $dir go rm -r $dir
done done
# primer/primer => primer/css # primer/primer => primer/css