forked from organicmaps/organicmaps-tmp
[tools] Rewrite clean_indexes
This commit is contained in:
parent
2081e75023
commit
7ec717e088
1 changed files with 7 additions and 0 deletions
7
tools/unix/clean_indexes.sh
Executable file
7
tools/unix/clean_indexes.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Removes indices after an app run. You can pass a path as the first argument.
|
||||
set -u -x
|
||||
TARGET="${1:-$(dirname "$0")/../../data}"
|
||||
for mwm in "$TARGET/"*.mwm; do
|
||||
rm -rf "$TARGET/$(basename "$mwm" .mwm)"
|
||||
done
|
Loading…
Add table
Reference in a new issue