Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Galbraith <mattgal@microsoft.com>2016-10-04 22:56:48 +0300
committerMatt Galbraith <mattgal@microsoft.com>2016-10-04 22:56:48 +0300
commit62ea159dcfeeca4b4eae97e32c571cdeacc9f102 (patch)
tree018bb6d9fc43bbb75669bd8a5832a2470eae542e /clean.sh
parentc09f4bda723c2dd4ff9d7e546ade5c627baa8cfe (diff)
PR Feedback: support variations on "all" for clean.sh as well
Diffstat (limited to 'clean.sh')
-rwxr-xr-xclean.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/clean.sh b/clean.sh
index 227e691d31..8848ebd62a 100755
--- a/clean.sh
+++ b/clean.sh
@@ -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