src/Rocketeer/Services/Connections/Shell/Modules/Filesystem.php
protected function checkStatement($condition)
    {
        $condition = '[ '.$condition.' ] && echo "true"';
        $condition = $this->modulable->runRaw($condition);

        return trim($condition) === 'true';
    }
protected function checkStatement($condition)
    {
        $condition = '[ '.$condition.' ] && echo "true"';
        $condition = $this->modulable->runRaw($condition);

        return trim($condition) === 'true';
    }
protected function checkStatement ( $ condition ) { $ condition = '[ ' . $ condition . ' ] && echo "true"' ; $ condition = $ this -> modulable -> runRaw ( $ condition ) ; return trim ( $ condition ) === 'true' ; }
Check a condition via Bash.

@param string $condition

@return bool
Check a condition via Bash .