@leverege/build-tools 2.43.4 → 2.43.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.43.4",
3
+ "version": "2.43.5",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -6,7 +6,6 @@
6
6
  import chalk from 'chalk'
7
7
  import commandLineArgs from 'command-line-args'
8
8
  import commandLineUsage from 'command-line-usage'
9
- import ms from 'ms'
10
9
  import { lt as semverLt } from 'semver'
11
10
 
12
11
  import { debug, log, shellCmd } from './Utils.mjs'
@@ -57,8 +56,9 @@ if ( args._unknown ) {
57
56
 
58
57
  const gcpProject = args.project ? args.project : process.env.HELM_CHART_REGISTRY || 'leverege-registry'
59
58
 
60
- if ( semverLt( process.version, '18.0.0' ) ) {
61
- log( chalk.red( '\n\n***ERROR: must be running at least node 18\n' ) )
59
+ const minNodejsVersion = '18.13.0'
60
+ if ( semverLt( process.version, minNodejsVersion ) ) {
61
+ log( chalk.red( `\n\n***ERROR: must be running at least node ${minNodejsVersion}\n` ) )
62
62
  process.exit( 1 )
63
63
  }
64
64
 
package/src/dirty-git.sh CHANGED
@@ -1,13 +1,19 @@
1
1
  #!/bin/bash
2
-
2
+ #
3
+ # Unicode character sets here:
4
+ # ://en.wikipedia.org/wiki/List_of_Unicode_characters
5
+ # start looking around dingbats (3/4 down page"
6
+ #
3
7
  CLEAN="\e[32m✔\e[0m"
4
8
  DIRTY="\e[31m✘\e[0m"
5
9
  STASH="\e[33;44m$\e[0m"
6
10
  AHEAD="\e[34;42m!\e[0m"
11
+ #NOHED="\e[31m✖\e[0m"
12
+ NOHED="\e[31;43m⚑\e[0m"
7
13
  LOCKD="\e[35m\e[0m"
8
14
 
9
15
  clear
10
- printf "${CLEAN} clean ${DIRTY} dirty ${STASH} stashed ${AHEAD} unpushed ${LOCKD} locked\n\n"
16
+ printf "${CLEAN} clean ${DIRTY} dirty ${STASH} stashed ${AHEAD} unpushed ${NOHED} no remote ${LOCKD} locked\n\n"
11
17
  for dir in $@;
12
18
  do
13
19
  [ ! -d $dir ] || [ ! -d $dir/.git ] && continue
@@ -16,8 +22,13 @@ do
16
22
  [[ `git status --porcelain` ]] && status="$DIRTY" || status="$CLEAN"
17
23
  scount=`git stash list | wc -l`
18
24
  [ $scount -gt 0 ] && stash="\e[33;44m$\e[0m" || stash=" "
19
- ahead=`git rev-list FETCH_HEAD..HEAD --count`
20
- [ $ahead -gt 0 ] && ahead="$AHEAD" || ahead=" "
25
+ ahead=`git rev-list FETCH_HEAD..HEAD --count 2>/dev/null`
26
+ if [ -z "$ahead" ];
27
+ then
28
+ ahead="$NOHED" # "✖" # "❓"
29
+ else
30
+ [ $ahead -gt 0 ] && ahead="$AHEAD" || ahead=" "
31
+ fi
21
32
  [ -f "Versions.json" ] && locked="$LOCKD" || locked=" "
22
33
  cd - &>/dev/null
23
34
  printf "${status} %-28s ${stash}${ahead}${locked} %s\n" $dir $branch
@@ -4,10 +4,11 @@ showInstalling "PostgreSQL Database"
4
4
 
5
5
  errorIfMissingSecret authz-postgres
6
6
 
7
- addBitnamiRepo
7
+ addBitnamiRepo # latest
8
8
 
9
+ [ -z "$POSTGRESQL_CHART_VERSION" ] && POSTGRESQL_CHART_VERSION="10"
9
10
  helm upgrade --install postgres bitnami/postgresql \
10
11
  --values postgres/postgres-local.yaml \
11
- --version 10 $HELM_WHAT
12
+ --version $POSTGRESQL_CHART_VERSION $HELM_WHAT
12
13
 
13
14
  removeHelmRepo bitnami