diff options
author | Matt Galbraith <mattgal@microsoft.com> | 2016-10-04 22:56:48 +0300 |
---|---|---|
committer | Matt Galbraith <mattgal@microsoft.com> | 2016-10-04 22:56:48 +0300 |
commit | 62ea159dcfeeca4b4eae97e32c571cdeacc9f102 (patch) | |
tree | 018bb6d9fc43bbb75669bd8a5832a2470eae542e /clean.sh | |
parent | c09f4bda723c2dd4ff9d7e546ade5c627baa8cfe (diff) |
PR Feedback: support variations on "all" for clean.sh as well
Diffstat (limited to 'clean.sh')
-rwxr-xr-x | clean.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,7 +20,8 @@ fi __working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -if [ "$*" == "-all" ] +clean_arg=$* +if [[ "${clean_arg,,}" == *"all"* ]] then echo "Removing all untracked files in the working tree" git clean -xdf $__working_tree_root |