Project

General

Profile

Backport #16918

Updated by Nathan Cutler over 7 years ago

https://github.com/ceph/ceph/pull/10569 

 for portability/compatibility reasons I'd like to request a backport of this commit to hammer as the script will fail with syntax error when using /bin/bash as default SHELL 

 echo $SHELL 
 /bin/bash 
 ./stop.sh 

 outputs: 

 ./stop.sh: line 73: syntax error near unexpected token `<' 
 ./stop.sh: line 73: `      done < <("${CEPH_BIN}"/rbd showmapped | tail -n +2)' 

 verify that it works with sh: 

 sh stop.sh 
 $? 
 0 

 the commit that fixes it: 
 SHA1: 27f2d806f905df1a51b11bd79f1af4c26471407a 

 thanks!

Back