File tree Expand file tree Collapse file tree 15 files changed +48
-22
lines changed
src/usr/local/containerbase Expand file tree Collapse file tree 15 files changed +48
-22
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ function link_tool () {
67
67
shell_wrapper " ${TOOL_NAME} " " ${versioned_tool_path} /bin"
68
68
shell_wrapper mix " ${versioned_tool_path} /bin"
69
69
70
- [[ -n $SKIP_VERSION ]] || elixir --version
71
- [[ -n $SKIP_VERSION ]] || mix --version
70
+ elixir --version
71
+ mix --version
72
72
73
73
if [[ $( is_root) -eq 0 ]]; then
74
74
su -c ' mix local.hex --force' " ${USER_NAME} "
Original file line number Diff line number Diff line change @@ -97,5 +97,5 @@ function link_tool () {
97
97
# only works for v24+
98
98
# export_tool_env ERL_ROOTDIR "${versioned_tool_path}"
99
99
shell_wrapper erl " ${versioned_tool_path} /bin"
100
- [[ -n $SKIP_VERSION ]] || erl -eval ' erlang:display(erlang:system_info(otp_release)), halt().' -noshell
100
+ erl -eval ' erlang:display(erlang:system_info(otp_release)), halt().' -noshell
101
101
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function install_tool () {
35
35
function link_tool () {
36
36
shell_wrapper " ${TOOL_NAME} " " $( find_versioned_tool_path) /bin"
37
37
38
- [[ -n $SKIP_VERSION ]] || git lfs version
38
+ git lfs version
39
39
40
40
if [ " $( is_root) " -eq 0 ]; then
41
41
git lfs install --system
Original file line number Diff line number Diff line change @@ -100,7 +100,9 @@ function link_tool () {
100
100
versioned_tool_path=$( find_versioned_tool_path)
101
101
102
102
shell_wrapper go " ${versioned_tool_path} /bin" " GOBIN=\$ {GOBIN-${BIN_DIR} }"
103
+ }
103
104
104
- [[ -n $SKIP_VERSION ]] || go version
105
- [[ -n $SKIP_VERSION ]] || go env
105
+ function test_tool () {
106
+ go version
107
+ go env
106
108
}
Original file line number Diff line number Diff line change @@ -21,5 +21,8 @@ function link_tool () {
21
21
versioned_tool_path=$( find_versioned_tool_path)
22
22
23
23
shell_wrapper " ${TOOL_NAME} " " ${versioned_tool_path} /bin"
24
- [[ -n $SKIP_VERSION ]] || jb --version
24
+ }
25
+
26
+ function test_tool () {
27
+ jb --version
25
28
}
Original file line number Diff line number Diff line change @@ -36,5 +36,8 @@ function link_tool() {
36
36
versioned_tool_path=$( find_versioned_tool_path)
37
37
38
38
shell_wrapper " ${TOOL_NAME} " " ${versioned_tool_path} /bin" " NIX_STORE_DIR=$( get_cache_path) /nix/store NIX_DATA_DIR=$( get_cache_path) /nix/data NIX_LOG_DIR=$( get_cache_path) /nix/log NIX_STATE_DIR=$( get_cache_path) /nix/state NIX_CONF_DIR=$( get_cache_path) /nix/conf"
39
- [[ -n $SKIP_VERSION ]] || nix --version
39
+ }
40
+
41
+ function test_tool () {
42
+ nix --version
40
43
}
Original file line number Diff line number Diff line change @@ -38,5 +38,8 @@ function install_tool () {
38
38
39
39
function link_tool () {
40
40
shell_wrapper pwsh " $( find_versioned_tool_path) "
41
- [[ -n $SKIP_VERSION ]] || pwsh -version
41
+ }
42
+
43
+ function test_tool () {
44
+ pwsh -version
42
45
}
Original file line number Diff line number Diff line change @@ -126,7 +126,9 @@ function link_tool () {
126
126
shell_wrapper pip " ${versioned_tool_path} /bin"
127
127
shell_wrapper " pip${MAJOR} " " ${versioned_tool_path} /bin"
128
128
shell_wrapper " pip${MAJOR} .${MINOR} " " ${versioned_tool_path} /bin"
129
+ }
129
130
130
- [[ -n $SKIP_VERSION ]] || python --version
131
- [[ -n $SKIP_VERSION ]] || PYTHONWARNINGS=ignore pip --version
131
+ function test_tool () {
132
+ python --version
133
+ PYTHONWARNINGS=ignore pip --version
132
134
}
Original file line number Diff line number Diff line change @@ -138,8 +138,10 @@ function link_tool () {
138
138
139
139
shell_wrapper ruby " ${versioned_tool_path} /bin"
140
140
shell_wrapper gem " ${versioned_tool_path} /bin"
141
+ }
141
142
142
- [[ -n $SKIP_VERSION ]] || ruby --version
143
- [[ -n $SKIP_VERSION ]] || echo " gem $( gem --version) "
144
- [[ -n $SKIP_VERSION ]] || gem env
143
+ function test_tool () {
144
+ ruby --version
145
+ echo " gem $( gem --version) "
146
+ gem env
145
147
}
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ function link_tool () {
74
74
75
75
shell_wrapper " cargo" " ${versioned_tool_path} /bin"
76
76
shell_wrapper " rustc" " ${versioned_tool_path} /bin"
77
+ }
77
78
78
- [[ -n $SKIP_VERSION ]] || cargo --version
79
- [[ -n $SKIP_VERSION ]] || rustc --version
79
+ function test_tool () {
80
+ cargo --version
81
+ rustc --version
80
82
}
You can’t perform that action at this time.
0 commit comments