@beplus/be 0.1.0 → 0.3.0
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/bin/be +7 -6
- package/package.json +1 -1
package/bin/be
CHANGED
|
@@ -64,7 +64,7 @@ function n_grep() {
|
|
|
64
64
|
# Setup and state
|
|
65
65
|
#
|
|
66
66
|
|
|
67
|
-
VERSION="v0.
|
|
67
|
+
VERSION="v0.3.0"
|
|
68
68
|
|
|
69
69
|
BE_PREFIX="${BE_PREFIX-/usr/local}"
|
|
70
70
|
BE_PREFIX=${BE_PREFIX%/}
|
|
@@ -226,8 +226,8 @@ function update_arch_settings_for_version() {
|
|
|
226
226
|
#
|
|
227
227
|
|
|
228
228
|
function is_numeric_version() {
|
|
229
|
-
# e.g. 6, v7.1, 8.11.3
|
|
230
|
-
[[ "$1" =~ ^[v]{0,1}[0-9]+(\.[0-9]+){0,2}
|
|
229
|
+
# e.g. 6, v7.1, 8.11.3, 1.0.0-alpha.56
|
|
230
|
+
[[ "$1" =~ ^[v]{0,1}[0-9]+(\.[0-9]+){0,2}(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
#
|
|
@@ -236,7 +236,7 @@ function is_numeric_version() {
|
|
|
236
236
|
|
|
237
237
|
function is_exact_numeric_version() {
|
|
238
238
|
# e.g. 6, v7.1, 8.11.3
|
|
239
|
-
[[ "$1" =~ ^[v]{0,1}[0-9]+\.[0-9]+\.[0-9]
|
|
239
|
+
[[ "$1" =~ ^[v]{0,1}[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
#
|
|
@@ -320,7 +320,7 @@ Commands:
|
|
|
320
320
|
|
|
321
321
|
Options:
|
|
322
322
|
|
|
323
|
-
-V, --version Output version of
|
|
323
|
+
-V, --version Output version of be
|
|
324
324
|
-h, --help Display help information
|
|
325
325
|
-q, --quiet Disable curl output. Disable log messages processing "auto" label.
|
|
326
326
|
-d, --download Download if necessary, and don't make active
|
|
@@ -1133,7 +1133,8 @@ function display_remote_versions() {
|
|
|
1133
1133
|
abort "invalid version '$1'"
|
|
1134
1134
|
fi
|
|
1135
1135
|
|
|
1136
|
-
local index_url="https://api.github.com/repos/beplus/cli/releases"
|
|
1136
|
+
# local index_url="https://api.github.com/repos/beplus/cli/releases"
|
|
1137
|
+
local index_url="https://beplus.s3.amazonaws.com/cli/releases.json"
|
|
1137
1138
|
|
|
1138
1139
|
for row in $(do_get_index "${index_url}" | jq -r '.[] | @base64'); do
|
|
1139
1140
|
_jq() {
|
package/package.json
CHANGED