aboutsummaryrefslogtreecommitdiff
path: root/clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'clean.sh')
-rwxr-xr-xclean.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/clean.sh b/clean.sh
index d37cd91..c8a4e4d 100755
--- a/clean.sh
+++ b/clean.sh
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -euxo pipefail
+cd "$(dirname "${BASH_SOURCE[0]}")"
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; }' \