Commit 9ea5ccc4 by Qiang Xue

bug fix.

parent a9688954
......@@ -15,6 +15,24 @@
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0",
"yiisoft/yii2": "dev-master"
"yiisoft/yii2": "dev-master",
"yiisoft/yii2-composer": "dev-master"
},
"scripts": {
"post-install-cmd": [
"yii\\composer\\InstallHandler::setPermissions"
],
"post-update-cmd": [
"yii\\composer\\InstallHandler::setPermissions"
]
},
"extra": {
"writable": [
"runtime",
"www/assets"
],
"executable": [
"yii"
]
}
}
......@@ -41,11 +41,11 @@ class InstallHandler
foreach ((array)$options['executable'] as $path) {
echo "Setting executable: $path ...";
if (is_dir($path)) {
if (is_file($path)) {
chmod($path, 0755);
echo "done\n";
} else {
echo "The file was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path;
echo "\n\tThe file was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path . "\n";
return;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment