Reviewed: https://review.openstack.org/235705 Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=d8a0e13261f8df2b963f0f96085c8ceaad654309 Submitter: Jenkins Branch: master
commit d8a0e13261f8df2b963f0f96085c8ceaad654309 Author: Martin André <email address hidden> Date: Fri Oct 16 11:11:14 2015 +0900
Fix uniqueness check of initrd in fedora-minimal
The check suffered from various flaws.
First, due to missing quotes around $initrd, 'wc -l' would always see 1 line no matter how many results the find returned.
Second, echo adds a line break making 'wc -l' count 1 even for empty string. We need to add a check for empty string.
Change-Id: Ib2c67960f566dbdc471d9585a4cef1beb1cc38ab Closes-Bug: #1506692
Reviewed: https:/ /review. openstack. org/235705 /git.openstack. org/cgit/ openstack/ diskimage- builder/ commit/ ?id=d8a0e13261f 8df2b963f0f9608 5c8ceaad654309
Committed: https:/
Submitter: Jenkins
Branch: master
commit d8a0e13261f8df2 b963f0f96085c8c eaad654309
Author: Martin André <email address hidden>
Date: Fri Oct 16 11:11:14 2015 +0900
Fix uniqueness check of initrd in fedora-minimal
The check suffered from various flaws.
First, due to missing quotes around $initrd, 'wc -l' would always see
1 line no matter how many results the find returned.
Second, echo adds a line break making 'wc -l' count 1 even for empty
string. We need to add a check for empty string.
Change-Id: Ib2c67960f566db dc471d9585a4cef 1beb1cc38ab
Closes-Bug: #1506692