{"push_id":934470895,"size":45,"distinct_size":41,"ref":"refs/heads/master","head":"98add47637b2540a3ea79edd0e5a302a37bee10a","before":"332af17c2bc40b7a728960f33b5c087a0ef2936f","commits":[{"sha":"422c3f7fc58aaad1e6302c631d4b7837dc66a38c","author":{"email":"55b0c82c3df2a496d5f462032ab0bb5a862438b1@gmail.com","name":"Mauricio Faria de Oliveira"},"message":"lsf_startup: fix LSF_VERSION expression\n\nWhen running lsf_startup\r\n\r\n\t[root@xcat-mn lsf]# updatenode $lsf_master --scripts lsf_startup\r\n\t<...>\r\n\tp8r1n1: Mon Nov 30 21:30:58 EST 2015 Running postscript: lsf_startup\r\n\tp8r1n1: INFO: Run hostsetup on each node.\r\n\tp8r1n1: ./lsf_startup: line 48: /usr/share/lsf//install/hostsetup: No such file or directory\r\n\t<...>\r\n\r\nIt is because this expression is broken; no mention to / as field separator.\r\n\r\n\t# grep '^LSF_VERSION' /install/postscripts/lsf_startup LSF_VERSION=`find /$LSF_TOP -name hostsetup|head -1|awk '{print $5}'`\r\n\r\nSee:\r\n\r\n\t[root@p8r1n1 ~]# LSF_TOP=\"/usr/share/lsf\"\r\n\r\n\t[root@p8r1n1 ~]# find /$LSF_TOP -name hostsetup | head -1\r\n\t//usr/share/lsf/9.1/install/hostsetup\r\n\r\n\t[root@p8r1n1 ~]# find /$LSF_TOP -name hostsetup|head -1|awk '{print $5}'\r\n\t[root@p8r1n1 ~]# \r\n\r\nAdditionally, it would fail if the version was not exactly the 5th field, which may occur if the user doesn't use /usr/share/lsf for LSF_TOP. And there's even a leading / before $LSF_TOP (ie, /$LSF_TOP).. and what if the user sets LSF_TOP with a trailing / ?\r\n\r\nSo, lets make this independent of leading slashes and trailing slashes.\r\n\r\n\tLSF_VERSION=\"$(find /$LSF_TOP -path \"*/install/hostsetup\" | grep -o \"/[^/]\\+/install/hostsetup\" | cut -d/ -f2)\"\r\n\r\nIt works on the usual and non-usual cases:\r\n\r\n\t[root@p8r1n1 ~]# LSF_TOP=/usr/share/lsf\r\n\t[root@p8r1n1 ~]# find /$LSF_TOP -path '*/install/hostsetup' | grep -o '/[^/]\\+/install/hostsetup' | cut -d/ -f2\r\n\t9.1\r\n\r\n\t[root@p8r1n1 ~]# LSF_TOP=/test/some/other/dir/for/lsf\r\n\t[root@p8r1n1 ~]# mkdir -p $LSF_TOP/9.1/install\r\n\t[root@p8r1n1 ~]# touch $LSF_TOP/9.1/install/hostsetup\r\n\t[root@p8r1n1 ~]# find /$LSF_TOP -path \"*/install/hostsetup\" | grep -o '/[^/]\\+/install/hostsetup' | cut -d/ -f2\r\n\t9.1","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/422c3f7fc58aaad1e6302c631d4b7837dc66a38c"},{"sha":"50864280f972a521da90e0184a8440e04b31f7c6","author":{"email":"a41e70d5fa273557cadebea1ecadd4f439921afd@cn.ibm.com","name":"bybai"},"message":"fix psh/pscp -v and -h","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/50864280f972a521da90e0184a8440e04b31f7c6"},{"sha":"cb2e77f015a67125bc71393192d11644b37e9852","author":{"email":"a92c54e062d45b3df8bdad171a0e1802396f469a@cn.ibm.com","name":"caomengmeng"},"message":"complete v1","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/cb2e77f015a67125bc71393192d11644b37e9852"},{"sha":"4ae0d45fde5b93368120fd68d85c08f4fae4de16","author":{"email":"0101af129f8dd08c86cfd8c820c3062811b21216@cn.ibm.com","name":"huweihua"},"message":"restructure uninstall xcat doc","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/4ae0d45fde5b93368120fd68d85c08f4fae4de16"},{"sha":"0d80c3b85d1299c3ec4efee1c88b1bf826b1ba0e","author":{"email":"0101af129f8dd08c86cfd8c820c3062811b21216@cn.ibm.com","name":"huweihua"},"message":"restructure uninstall xcat doc","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/0d80c3b85d1299c3ec4efee1c88b1bf826b1ba0e"},{"sha":"de804c8b23ace95ccf37397f84aa59c8249c2d5e","author":{"email":"d42b4e17b26b1d8fd5b9b2142acd07d75cd1e078@cn.ibm.com","name":"penguhyang"},"message":"correct words and syntax error about xcat-docs","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/de804c8b23ace95ccf37397f84aa59c8249c2d5e"},{"sha":"181fdee0cef4afb6233759dfddd7ac3b4eee81d9","author":{"email":"8fe76bbf7589eb261dd92557c4145be35d27d451@cn.ibm.com","name":"immarvin"},"message":"add support for chvm --detachdev","distinct":false,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/181fdee0cef4afb6233759dfddd7ac3b4eee81d9"},{"sha":"c2b9d979da76556ddee85715cd802e00bf966069","author":{"email":"8fe76bbf7589eb261dd92557c4145be35d27d451@cn.ibm.com","name":"immarvin"},"message":"correct indent","distinct":false,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/c2b9d979da76556ddee85715cd802e00bf966069"},{"sha":"fa28124b3d35b9e3e09d5d6cf0e08dddae055f55","author":{"email":"8fe76bbf7589eb261dd92557c4145be35d27d451@cn.ibm.com","name":"immarvin"},"message":"update chvm manpage in doc","distinct":false,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/fa28124b3d35b9e3e09d5d6cf0e08dddae055f55"},{"sha":"f37c53bff279eeb111e1a96a0e5ffbf1b7603cd7","author":{"email":"8fe76bbf7589eb261dd92557c4145be35d27d451@cn.ibm.com","name":"immarvin"},"message":"correct the indent of comments","distinct":false,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/f37c53bff279eeb111e1a96a0e5ffbf1b7603cd7"},{"sha":"63e17f87e728851e57751b95f32ba3c3c26dd3e6","author":{"email":"982e584ea25e38b20c0d50eea4137996c141c24b@users.noreply.github.com","name":"Xiaopeng Wang"},"message":"Merge pull request #548 from immarvin/onissue470_new\n\n fix issue Need to support detach operation for PowerKVM PCI pass-through #470 #524","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/63e17f87e728851e57751b95f32ba3c3c26dd3e6"},{"sha":"785de20325b35c09d536b6caa60e2d5a0bfd7bbb","author":{"email":"0101af129f8dd08c86cfd8c820c3062811b21216@cn.ibm.com","name":"huweihua"},"message":"modify depending on comments","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/785de20325b35c09d536b6caa60e2d5a0bfd7bbb"},{"sha":"99b89748149b1ed1161f4ef8dc9e8d309f3cd760","author":{"email":"0101af129f8dd08c86cfd8c820c3062811b21216@cn.ibm.com","name":"huweihua"},"message":"modify depending on comments","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/99b89748149b1ed1161f4ef8dc9e8d309f3cd760"},{"sha":"d825808690305453617887b886cdb2e2abb4b841","author":{"email":"982e584ea25e38b20c0d50eea4137996c141c24b@users.noreply.github.com","name":"Xiaopeng Wang"},"message":"Merge pull request #540 from penguhyang/xcat_docs\n\ncorrect words and syntax error about xcat-docs","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/d825808690305453617887b886cdb2e2abb4b841"},{"sha":"2c5829e27d35cda2ef9cdb7306d567cbb4686fc4","author":{"email":"0101af129f8dd08c86cfd8c820c3062811b21216@cn.ibm.com","name":"huweihua"},"message":"modify defect 555","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/2c5829e27d35cda2ef9cdb7306d567cbb4686fc4"},{"sha":"19bd82de4b3cf27f505cf700da18aee46d548fe6","author":{"email":"a41e70d5fa273557cadebea1ecadd4f439921afd@cn.ibm.com","name":"Yuan Bai"},"message":"Merge pull request #495 from mfoliveira/patch-4\n\nlsf_startup: fix LSF_VERSION expression","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/19bd82de4b3cf27f505cf700da18aee46d548fe6"},{"sha":"fdca2cc3f959140df18d65dce67f485a9be8f850","author":{"email":"54646a77d3f0ac0eb079159b75ce54cfd4e884dd@cn.ibm.com","name":"ertaozh"},"message":"replace the determine install disk precess with script share/xcat/install/scripts/getinstdisk, it will write the install disk to /tmp/install_disk","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/fdca2cc3f959140df18d65dce67f485a9be8f850"},{"sha":"f05b4bfd86e61a54cb4ced672ff0244ed8156d23","author":{"email":"a41e70d5fa273557cadebea1ecadd4f439921afd@cn.ibm.com","name":"bybai"},"message":"fix482 chdef man page -n description.","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/f05b4bfd86e61a54cb4ced672ff0244ed8156d23"},{"sha":"c54481efc5c5510ac944171f2af3ffc5629e852c","author":{"email":"f805b9c873fdc0e7036c8b786818f391c8bbed82@users.noreply.github.com","name":"yangsong"},"message":"Merge pull request #534 from zet809/refine_find_install_disk\n\nreplace the determine install disk precess with script share/xcat/ins…","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/c54481efc5c5510ac944171f2af3ffc5629e852c"},{"sha":"c08fc960b2204e8d9ca54928822bfd5fbfa4cfde","author":{"email":"49abac29131f1562af0d1654e7c3886076cb219c@cn.ibm.com","name":"XuWei"},"message":"Get_install_disk,Task 75933","distinct":true,"url":"https://api.github.com/repos/immarvin/xcat-core/commits/c08fc960b2204e8d9ca54928822bfd5fbfa4cfde"}]}