diff options
| -rwxr-xr-x | bin/decompile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/decompile b/bin/decompile index 68a5546..6073e4b 100755 --- a/bin/decompile +++ b/bin/decompile @@ -6,6 +6,22 @@ main() { echo "Using WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR}" + if [[ -d source ]]; then + echo + + read -p "source directory already exists. Do you want to overwrite it? [y/N] " -n 1 -r + + echo + + if [[ ! ${REPLY} =~ ^[Yy]$ ]]; then + echo "Exiting ..." + + exit 1 + fi + + rm -rf source + fi + vineflower --explicit-generics=true "${WORLDSPLAYER_JAR}" source if command -v git &>/dev/null; then |