File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# get the directory of this script
66DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
77
8- RSTRIP=" \" * "
9- LSTRIP=" * \" "
8+ RSTRIP=' "* '
9+ LSTRIP=' *" '
1010
1111# get the package name
12- PACKAGE_LINE=$( grep ' name=' $DIR /../setup.py || echo ' ' )
12+ PACKAGE_LINE=$( grep " name=" $DIR /../setup.py || echo ' ' )
1313PACKAGE_TEMP=${PACKAGE_LINE% $RSTRIP }
1414PACKAGE=${PACKAGE_TEMP## $LSTRIP }
1515
Original file line number Diff line number Diff line change 55# get the directory of this script
66DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
77
8- RSTRIP=" \" * "
9- LSTRIP=" * \" "
8+ RSTRIP=' "* '
9+ LSTRIP=' *" '
1010
1111# get the package name
1212PACKAGE=$( $DIR /get_package_name.sh)
1313
1414# get the current version
15- VERSION_LINE=$( grep ' __version__' " $DIR /../$PACKAGE /__init__.py" || echo ' ' )
16- VERSION_TEMP=${VERSION_LINE% " \" " }
15+ VERSION_LINE=$( grep " __version__" " $DIR /../$PACKAGE /__init__.py" || echo ' ' )
16+ VERSION_TEMP=${VERSION_LINE% ' " ' }
1717
1818VERSION=${VERSION_TEMP## $LSTRIP }
1919
Original file line number Diff line number Diff line change 33# get the directory of this script
44DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
55
6- # get the package name
7- PACKAGE=$( $DIR /get_package_name.sh)
8-
96# get the current version
107VERSION=$( $DIR /get_version.sh)
118
You can’t perform that action at this time.
0 commit comments