public _getScriptPath ( $script ) : string | ||
$script | string The script name without extension. | |
리턴 | string | script name with platform specific extension. |
function _getScriptPath($script)
{
$scriptPath = $this->_getScriptDirectory() . $script;
if (Core::isWindows()) {
$scriptPath .= '.bat';
} else {
$scriptPath .= '.sh';
}
return $scriptPath;
}