N98\Magento\Command\ScriptCommand::_prepareShellCommand PHP Method

_prepareShellCommand() protected method

protected _prepareShellCommand ( string $commandString ) : string
$commandString string
return string
    protected function _prepareShellCommand($commandString)
    {
        $commandString = ltrim($commandString, '!');
        // @TODO find a better place
        if (strstr($commandString, '${magento.root}') || strstr($commandString, '${magento.version}') || strstr($commandString, '${magento.edition}')) {
            $this->initMagento();
        }
        $this->initScriptVars();
        $commandString = $this->_replaceScriptVars($commandString);
        return $commandString;
    }