Signed-off-by: Brian Millett <[email protected]> --- RHEL6/transforms/combinefixes.sh | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 RHEL6/transforms/combinefixes.sh
diff --git a/RHEL6/transforms/combinefixes.sh b/RHEL6/transforms/combinefixes.sh deleted file mode 100755 index e351b1e..0000000 --- a/RHEL6/transforms/combinefixes.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -## First argument: directory with .sh scripts -## Second argument: where to put combined xml file - -shopt -s nullglob -echo "<fix-group id=\"bash\" system=\"urn:xccdf:fix:script:sh\" xmlns=\"http://checklists.nist.gov/xccdf/1.1\">" > $2 - -for fixScript in $1/*.sh; do - fixName=`echo $fixScript | awk -F/ ' { print $NF } ' | awk -F. ' { print $1 }'` - fixContent=`cat $fixScript` - echo "<fix rule=\"$fixName\">" >>$2 - cat $fixScript | while read fixLine; do echo $fixLine >>$2; done - echo "</fix>" >>$2 -done - -echo "</fix-group>" >>$2 -- 1.8.1.4 _______________________________________________ scap-security-guide mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide
