Fix bin/manage rights on new project

This commit is contained in:
Benjamin Renard 2023-03-05 00:45:18 +01:00
parent e550c345cf
commit fc29012dce
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC
2 changed files with 2 additions and 0 deletions

0
skel/bin/manage Normal file → Executable file
View file

View file

@ -290,6 +290,8 @@ class Cli {
if (!copy($item, $path)) if (!copy($item, $path))
die("Fail to copy file to $path\n"); 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"; echo "done. Start coding!\n";
} }