You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -163,10 +163,12 @@ function status_data_create() {
163
163
sd_kat_ver="$6"
164
164
sd_kat_ver_short=$(echo"$sd_kat_ver"| sed 's/^katello-//'| sed 's/[^0-9.-]//g'| sed 's/^\([0-9]\+\.[0-9]\+\)\..*/\1/'| sed 's/^N\/A$/0.0/')# "katello-3.16.0-0.2.master.el7.noarch" -> "3.16"
165
165
sd_sat_ver="$7"
166
-
if [[ "$(echo "$sd_sat_ver"| awk -F'.''{print $(NF-2)}')"=='stream' ]];then
166
+
if [[ "$(echo "${sd_sat_ver}"| awk -F'.''{print $(NF-2)}')"=='stream' ]];then
167
+
sd_sat_ver_short=stream
168
+
elif [[ "${sd_sat_ver}"=='stream' ]];then
167
169
sd_sat_ver_short=stream
168
170
else
169
-
sd_sat_ver_short=$(echo"$sd_sat_ver"| sed 's/^satellite-//'| sed 's/[^0-9.-]//g'| sed 's/^\([0-9]\+\.[0-9]\+\)\..*/\1/'| sed 's/^N\/A$/0.0/')# "satellite-6.6.0-1.el7.noarch" -> "6.6"
171
+
sd_sat_ver_short=$(echo"${sd_sat_ver}"| sed 's/^satellite-//'| sed 's/[^0-9.-]//g'| sed 's/^\([0-9]\+\.[0-9]\+\)\..*/\1/'| sed 's/^N\/A$/0.0/')# "satellite-6.6.0-1.el7.noarch" -> "6.6"
0 commit comments