git-katas icon indicating copy to clipboard operation
git-katas copied to clipboard

Squelch setup output

Open praqma-thi opened this issue 5 years ago • 1 comments

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!"

praqma-thi avatar Apr 29 '20 11:04 praqma-thi

The suggestion definitely makes things a little more complicated, though, so I'm open for any suggestions

praqma-thi avatar Apr 29 '20 11:04 praqma-thi