Skip to content

Commit f50cb68

Browse files
committed
fix(scripts): version bump script not working
1 parent 04bdf0b commit f50cb68

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files-api-server",
3-
"version": "3.0.1",
3+
"version": "3.0.0",
44
"main": "dist/compiled/app.js",
55
"bin": "dist/compiled/server.js",
66
"repository": "https://github.com/dabbu-knowledge-platform/files-api-server",

scripts/bump.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ normal="\e[0m"
2424
function bump {
2525
# Check if NPM is installed
2626
local npm_command=$(which npm)
27-
if [ -z "$npm_command" || "$npm_command" == "npm not found" ]; then
27+
if [[ -z "$npm_command" || "$npm_command" == "npm not found" ]]; then
2828
# If not, throw an error
2929
echo -e "${colour_red}NodeJS and NPM must be installed!${colour_red}"
3030
exit 1
@@ -54,7 +54,7 @@ function bump {
5454
function add_release_notes {
5555
# Check if Git is installed
5656
local git_command=$(which git)
57-
if [ -z "$git_command" || "$git_command" == "git not found" ]; then
57+
if [[ -z "$git_command" || "$git_command" == "git not found" ]]; then
5858
# If not, throw an error
5959
echo -e "${colour_red}Git must be installed!${colour_red}"
6060
exit 1
@@ -107,8 +107,8 @@ function push_to_git {
107107

108108
# Run the script
109109
# If there is no preid, use alpha by default
110-
local preid=
111-
if [ -z "$2" ]; then
110+
preid=
111+
if [[ -z "$2" ]]; then
112112
preid="alpha"
113113
else
114114
preid="$2"

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.0.1
1+
v3.0.0

0 commit comments

Comments
 (0)