Skip to content

Commit

Permalink
Chore: add flags to bash scripts to bail on errors (#106)
Browse files Browse the repository at this point in the history
* Chore: add flags to bash scripts to bail on errors
* Chore: change to return to prevent dirty state
  • Loading branch information
DanDeMicco authored and pramodsum committed Feb 6, 2018
1 parent 5a2985c commit d8ac7a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/current_version.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/bash -xe

node -pe 'JSON.parse(process.argv[1]).version' "$(cat package.json)"
3 changes: 1 addition & 2 deletions build/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash

#!/bin/bash -xe

# Temp version
VERSION="XXX"
Expand Down
8 changes: 4 additions & 4 deletions build/release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -xe

export NODE_PATH=$NODE_PATH:./node_modules

Expand Down Expand Up @@ -209,23 +209,23 @@ push_new_release() {
echo "----------------------------------------------------"
echo "Error in update_changelog!"
echo "----------------------------------------------------"
exit 1
return 1
fi

# Update readme
if ! update_readme; then
echo "----------------------------------------------------"
echo "Error in update_readme!"
echo "----------------------------------------------------"
exit 1
return 1
fi

# Push to github
if ! push_to_github; then
echo "----------------------------------------------------"
echo "Error in push_to_github!"
echo "----------------------------------------------------"
exit 1
return 1
fi

# Push GitHub release
Expand Down

0 comments on commit d8ac7a5

Please sign in to comment.