avoid using absolute path in sample data

now made absolute in script, instead
This commit is contained in:
Aneurin Barker Snook
2017-07-05 21:00:13 +01:00
parent f1ce64374a
commit 00ecd4c712
3 changed files with 82 additions and 78 deletions
+3
View File
@@ -17,6 +17,9 @@ while ($data = fgetcsv($csv)) {
fclose($csv);
$projects = array_unique($projects);
$projects = array_map(function($p) {
return str_replace("~", $_SERVER["HOME"], $p);
}, $projects);
foreach ($projects as $project) {
$snippetsDir = "$project/snippets";