Commit 5adac9a6 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

helper: Fix bug in windows_add_synchronous_command

Fix a bug where an extra empty RunSynchronousCommand element was added
to the Windows unattend.xml file.
parent 4dae7b02
......@@ -610,8 +610,8 @@ windows_add_synchronous_command() {
-s "$rsc" -t elem -n Description -v "$description" \
-s "$rsc" -t elem -n Order -v "$order" \
-s "$rsc" -t elem -n Path -v "$path" \
-i "$rsc" -t attr -n wcm:action -v add \
-d "$rsc/@randomToken" "$unattend"
-i "$rsc" -t attr -n wcm:action -v add "$unattend"
$XMLSTARLET ed -L -d "$rsc/@randomToken" "$unattend"
}
windows_update_unattend_node() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment