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
Copy file name to clipboardExpand all lines: experiment/run-library.sh
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,11 @@ 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
-
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"
166
+
if [[ "$(echo "$sd_sat_ver"| awk -F'.''{print $(NF-2)}')"=='stream' ]];then
167
+
sd_sat_ver_short=stream
168
+
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"
170
+
fi
167
171
sd_run="$8"
168
172
sd_additional="$9"
169
173
if [ -n"$STATUS_DATA_FILE"-a-f"$STATUS_DATA_FILE" ];then
0 commit comments