File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ function rbx_url_prefix {
26
26
echo " https://${bucket} .s3-us-west-2.amazonaws.com"
27
27
}
28
28
29
+ function rbx_dist_version {
30
+ egrep -o ' [[:digit:]]+\.[[:digit:]]+' /etc/issue
31
+ }
32
+
29
33
function rbx_upload_files {
30
34
local bucket dest src path url name index
31
35
local -a file_exts
@@ -108,7 +112,7 @@ function rbx_deploy_travis_binary {
108
112
declare -a paths os_releases versions
109
113
110
114
if [[ $os_name == linux ]]; then
111
- os_releases=($( cat /etc/issue | egrep -o ' [[:digit:]]+\.[[:digit:]]+ ' ) )
115
+ os_releases=($( rbx_dist_version ) )
112
116
for (( i= 0 ; i < ${# os_releases[@]} ; i++ )) ; do
113
117
paths[i]=" /ubuntu/${os_releases[i]} /x86_64/"
114
118
done
@@ -254,7 +258,7 @@ function rbx_deploy_docker_release {
254
258
echo " Deploying Docker release $( rbx_revision_version) ..."
255
259
256
260
local version release file url response sha
257
- local -a paths=(" 12.04 " )
261
+ local -a paths=($( rbx_dist_version ) )
258
262
259
263
version=$( rbx_revision_version)
260
264
release=$( rbx_release_name)
You can’t perform that action at this time.
0 commit comments