aboutsummaryrefslogtreecommitdiff
path: root/clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'clean.sh')
-rwxr-xr-xclean.sh13
1 files changed, 0 insertions, 13 deletions
diff --git a/clean.sh b/clean.sh
deleted file mode 100755
index 68769e6..0000000
--- a/clean.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-set -eu
-
-cd "$(git rev-parse --show-toplevel)"
-
-if [ "$(git status --porcelain=v1 --ignored -z | grep -z '^!!' | wc -c)" = 0 ]; then
- exit
-fi
-
-git status --porcelain=v1 --ignored -z \
-| grep -z '^!!' \
-| xargs -0 awk 'BEGIN { for(i = 1; i < ARGC; i++) printf "%s%c", substr(ARGV[i], 4), 0; }' \
-| xargs -0 rm -r