From 0ff09868cb1b0f250c2c6ab040c10bfbe80b8c46 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 6 May 2014 06:58:57 -0700 Subject: [PATCH] Query user before removing build dir --- xwords4/android/scripts/arelease-clone.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xwords4/android/scripts/arelease-clone.sh b/xwords4/android/scripts/arelease-clone.sh index a3a6754b4..c44dfaa64 100755 --- a/xwords4/android/scripts/arelease-clone.sh +++ b/xwords4/android/scripts/arelease-clone.sh @@ -67,4 +67,12 @@ mkdir -p /tmp/releases_${VARIANT} cp *.apk /tmp/releases_${VARIANT} cd $CURDIR -rm -rf $BUILDIR +echo "remove build dir $BUILDIR? (y or n):" +echo -n "==> " +read ANSWER +if [ "$ANSWER" = 'y' ]; then + rm -rf $BUILDIR + echo "removed $BUILDIR" +else + echo "$BUILDIR not removed" +fi