Skip to content

Commit b49f399

Browse files
committed
feat: simplify release script
1 parent 321414d commit b49f399

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

release

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/usr/bin/env bash
22
set -eo pipefail; [[ $RELEASE_TRACE ]] && set -x
33

4-
PACKAGE_NAME='github-backup'
5-
INIT_PACKAGE_NAME='github_backup'
4+
if [[ ! -f setup.py ]]; then
5+
echo -e "${RED}WARNING: Missing setup.py${COLOR_OFF}\n"
6+
exit 1
7+
fi
8+
9+
PACKAGE_NAME="$(cat setup.py | grep "name='" | head | cut -d "'" -f2)"
10+
INIT_PACKAGE_NAME="$(echo "${PACKAGE_NAME//-/_}")"
611
PUBLIC="true"
712

813
# Colors

0 commit comments

Comments
 (0)