agrs-sequelize-sdk 1.4.6 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/run.sh +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",
package/run.sh CHANGED
@@ -117,8 +117,8 @@ if [[ $require_root_for_jq -eq 1 && $EUID -ne 0 ]]; then
117
117
  fi
118
118
 
119
119
  # Step 1: Check if logged in to NPM
120
- npmUsername=$(npm whoami 2>&1)
121
- if [[ $npmUsername == *"ERR"* ]]; then
120
+ npmUsername=$(npm whoami 2>/dev/null)
121
+ if [[ $? -ne 0 || -z "$npmUsername" ]]; then
122
122
  echo "Not logged in. Please log in to NPM."
123
123
  npm login
124
124
  if [[ $? -ne 0 ]]; then