@@ -16,6 +16,8 @@ function mainbranch {
16
16
log
17
17
}
18
18
19
+ # TODO have this branch created with a unique ID to avoid conflicts with other developers
20
+
19
21
function edge {
20
22
# it assumes there will be no conflict with anybody else
21
23
# as I'm the only person using 'edge'.
@@ -153,8 +155,6 @@ function squash {
153
155
function test {
154
156
# test our script & fct. Idempotent bash script
155
157
156
- help
157
-
158
158
figlet_message=" bashLaVa" && App_figlet
159
159
160
160
my_message=" Attributes:" App_Blue
@@ -185,6 +185,7 @@ function test {
185
185
186
186
echo
187
187
my_message=" Check versions:" App_Blue
188
+ input_2=" not_set"
188
189
App_Show_version
189
190
190
191
echo
@@ -509,22 +510,23 @@ file_is="_entrypoint.sh"
509
510
# TODO logic '"${input_2}" == "not_set"' prevent to call it from test
510
511
511
512
function App_Show_version {
512
- # Show version from three sources
513
- if [[ " ${input_2} " == " not_set" ]]; then
514
- echo && my_message=" Version checkpoints:" && App_Blue && \
513
+ # ## Show version from three sources
514
+ App_Is_input_2_empty_as_it_should
515
+
516
+ echo && my_message=" Version checkpoints:" && App_Blue && \
515
517
# ## dockerfile
516
- my_message=" ${app_version} < VERSION in Dockerfile" App_Gray
517
- my_message=" ${app_release} < RELEASE in Dockerfile" App_Gray
518
+ my_message=" ${app_version} < VERSION in Dockerfile" App_Gray
519
+ my_message=" ${app_release} < RELEASE in Dockerfile" App_Gray
518
520
# ## tag
519
- latest_tag=" $( git describe --tags --abbrev=0) "
520
- _var_name=" latest_tag" _is_it_empty=$( echo ${latest_tag} ) && App_Does_Var_Empty
521
- my_message=" ${latest_tag} < TAG on mainbranch" App_Gray
521
+ latest_tag=" $( git describe --tags --abbrev=0) "
522
+ _var_name=" latest_tag" _is_it_empty=$( echo ${latest_tag} ) && App_Does_Var_Empty
523
+ my_message=" ${latest_tag} < TAG on mainbranch" App_Gray
522
524
# ## release
523
- release_latest=$( curl -s https://api.github.com/repos/${github_user} /${app_name} /releases/latest | \
524
- grep tag_name | awk -F ' : "' ' { print $2 }' | awk -F ' ",' ' { print $1 }' )
525
- _var_name=" release_latest" _is_it_empty=$( echo ${release_latest} ) && App_Does_Var_Empty
526
- my_message=" ${release_latest} < RELEASE on https://github.com/${github_user} /${app_name} /releases/tag/${release_latest} " && App_Gray && echo
527
- fi
525
+ release_latest=$( curl -s https://api.github.com/repos/${github_user} /${app_name} /releases/latest | \
526
+ grep tag_name | awk -F ' : "' ' { print $2 }' | awk -F ' ",' ' { print $1 }' )
527
+ _var_name=" release_latest" _is_it_empty=$( echo ${release_latest} ) && App_Does_Var_Empty
528
+ my_message=" ${release_latest} < RELEASE on https://github.com/${github_user} /${app_name} /releases/tag/${release_latest} " && App_Gray && echo
529
+
528
530
}
529
531
530
532
function App_Show_release {
0 commit comments