>>636
/usr/bin/bash -o pipefail ではなく
/usr/bin/bash "-o pipefail" を実行している

まあ素直に
#!/bin/bash
set -o pipefail
って書けってことだな