git-katas
git-katas copied to clipboard
Squelch setup output
When running the setup.sh(/setup.ps1?) scripts, you get blasted by the output of git making multiple commits, branches, checkouts, etc. We can definitely smooth this out.
My initial thought would be to put the contents of the current setup.sh scripts in a hidden file, e.g. .actualSetup.sh, then have setup.sh simply call that, piping it to /dev/null:
#!/bin/bash
echo "Setting up exercise.."
if (args contains --debug or something)
./actualSetup.sh
else
./.actualSetup.sh > /dev/null
fi
echo "Done! Enjoy!"
The suggestion definitely makes things a little more complicated, though, so I'm open for any suggestions