fcaviggia / hardened-centos7-kickstart

DVD embedded Kickstart for CentOS 7 utilizing SCAP Security Guide (SSG) as a hardening script.
Other
158 stars 58 forks source link

If path to ISO contains '.' then script fails #30

Closed stephenwb closed 6 years ago

stephenwb commented 6 years ago

If the path to the original ISO file contains a '.' (dot)(e.g. "/home/buchanan/isobuild.d/CentOS-7-x86_64-DVD-1804.iso"), the 'awk -F .' parsing of the MAJOR and MINOR release numbers inserts components of the path instead of just the intended numbers. This causes the output path of the genisoimage command to contain an invalid path. Added a subshell 'cd' to the directory before the 'ls' to prevent the error.

stephenwb commented 6 years ago

Hey Frank, this is a super-simple change to two lines, same change on both lines, I know your home life is in OMG-must-get-sleep mode right now but take a look it should be a no-brainer merge

fcaviggia commented 6 years ago

Thanks for the patch. Merged.