File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- TO_DEL=" build dist clickhouse_mysql.egg-info deb_dist"
3
+ # List of items (files and folders) to be deleted.
4
+ # These items are package-related
5
+ ITEMS_TO_DEL="
6
+ build
7
+ dist
8
+ clickhouse_mysql.egg-info
9
+ deb_dist
10
+ "
4
11
5
12
echo " ########################################"
6
13
echo " ### Clear all build and release data ###"
7
14
echo " ########################################"
8
15
9
- echo " Deleting:"
10
- for DEL in $TO_DEL ; do
11
- echo " $DEL "
16
+ echo " About to delete:"
17
+ DEL=" "
18
+ for ITEM in ${ITEMS_TO_DEL} ; do
19
+ echo " ${ITEM} "
20
+ DEL=" ${DEL} ${ITEM} "
12
21
done
13
22
14
- echo " rm -rf $TO_DEL "
15
- rm -rf $TO_DEL
23
+ if [[ -z " ${DEL} " ]]; then
24
+ echo " No items to delete"
25
+ else
26
+ echo " rm -rf ${DEL} "
27
+ rm -rf ${DEL}
28
+ fi
You can’t perform that action at this time.
0 commit comments