From fc29012dce6dc742303b76a774bee773d6714674 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sun, 5 Mar 2023 00:45:18 +0100 Subject: [PATCH] Fix bin/manage rights on new project --- skel/bin/manage | 0 src/Cli.php | 2 ++ 2 files changed, 2 insertions(+) mode change 100644 => 100755 skel/bin/manage diff --git a/skel/bin/manage b/skel/bin/manage old mode 100644 new mode 100755 diff --git a/src/Cli.php b/src/Cli.php index 13edd67..9a197e9 100644 --- a/src/Cli.php +++ b/src/Cli.php @@ -290,6 +290,8 @@ class Cli { if (!copy($item, $path)) die("Fail to copy file to $path\n"); } + if (!chmod($path, $item->getPerms())) + die("Fail to chmod file $path\n"); } echo "done. Start coding!\n"; }