-
Notifications
You must be signed in to change notification settings - Fork 0
/
clear_data.sh
33 lines (33 loc) · 943 Bytes
/
clear_data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
while true; do
printf "\n"
read -p "Clear All? (y/n) " yn
if [[ "$yn" == "y" ]]; then
rm dataset/*
rm test_images/*
rm train_images/*
break
elif [[ "$yn" == "n" ]]; then
while true; do
printf "\n"
read -p "Clear train_images? (y/n) " train_images_choice
if [[ "$train_images_choice" == "y" ]]; then
rm train_images/*
break
elif [[ "$train_images_choice" == "n" ]]; then
break
fi
done
while true; do
printf "\n"
read -p "Clear test_images? (y/n) " test_images_choice
if [[ "$test_images_choice" == "y" ]]; then
rm test_images/*
break
elif [[ "$test_images_choice" == "n" ]]; then
break
fi
done
rm dataset/*
break
fi
done