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
printf'ERROR: --cpe auto but cannot read %s/usr/lib/system-release-cpe or parse CPE_NAME from %s/etc/os-release or %s/usr/lib/os-release.\n'"${root}""${root}""${root}">&2
179
+
exit 1
180
+
fi
181
+
fi
182
+
if [ -n"${cpe}" ];then
183
+
append_parameter "osCpe""${cpe}"
184
+
fi
185
+
151
186
# Terminate the JSON object
152
187
if [ -n"${json}" ];then
153
188
json="${json}}"
@@ -235,8 +270,8 @@ write_script() {
235
270
236
271
if! parse_options "$@"&& [ "$#"-gt 0 ];then
237
272
# Not supported on every distro
238
-
if [ -r /usr/lib/system-release-cpe ];then
239
-
cpe="$(cat /usr/lib/system-release-cpe)"
273
+
if [ -r"${root}/usr/lib/system-release-cpe" ];then
0 commit comments