Skip to content

Commit 54830b3

Browse files
committed
env: enhance dev scripts
1 parent dbba0de commit 54830b3

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed
File renamed without changes.

package_clear_old.sh

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
#!/bin/bash
22

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+
"
411

512
echo "########################################"
613
echo "### Clear all build and release data ###"
714
echo "########################################"
815

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}"
1221
done
1322

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

0 commit comments

Comments
 (0)