xaizek / fragile (License: AGPLv3+) (since 2018-12-07)
Simple lightweight CI, attempting to be somewhat Unix-like in its philosophy.
Commit 03290a3321eadfc80edd348712ef4607c1d4caaf

Account for symlinks on deleting directory trees
Author: xaizek
Author date (UTC): 2018-02-11 14:10
Committer name: xaizek
Committer date (UTC): 2018-02-11 14:10
Parent(s): b3ac4649567d08b447280d984c0145595cc2f00e
Signing key: 99DC5E4DB05F6BE2
Tree: f0960d987928937175433f05425bd39320445092
File Lines added Lines deleted
classes/Utils.php 4 3
File classes/Utils.php changed (mode: 100644) (index 624b77c..b6de919)
... ... class Utils
29 29 { {
30 30 $files = array_diff(scandir($dir), ['.', '..']); $files = array_diff(scandir($dir), ['.', '..']);
31 31 foreach ($files as $file) { foreach ($files as $file) {
32 if (is_dir("$dir/$file")) {
33 Utils::delTree("$dir/$file");
32 $path = "$dir/$file";
33 if (is_dir($path) && !is_link($path)) {
34 Utils::delTree($path);
34 35 } else { } else {
35 unlink("$dir/$file");
36 unlink($path);
36 37 } }
37 38 } }
38 39 return rmdir($dir); return rmdir($dir);
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/fragile

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/fragile

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master