| @@ 62-67 (lines=6) @@ | ||
| 59 | ||
| 60 | function copyShared($from, $to) | |
| 61 | { | |
| 62 |     foreach (get('shared_dirs') as $dir) { | |
| 63 |         if (test("[ -d $from/$dir ]")) { | |
| 64 |             run("mkdir -p $to/$dir"); | |
| 65 |             run("rsync -r --ignore-existing $from/$dir $to/".dirname(parse($dir))); | |
| 66 | } | |
| 67 | } | |
| 68 |     foreach (get('shared_files') as $file) { | |
| 69 |         if (test("[ -f $from/$file ]")) { | |
| 70 |             run("mkdir -p $to/".dirname(parse($file))); | |
| @@ 68-73 (lines=6) @@ | ||
| 65 |             run("rsync -r --ignore-existing $from/$dir $to/".dirname(parse($dir))); | |
| 66 | } | |
| 67 | } | |
| 68 |     foreach (get('shared_files') as $file) { | |
| 69 |         if (test("[ -f $from/$file ]")) { | |
| 70 |             run("mkdir -p $to/".dirname(parse($file))); | |
| 71 |             run("rsync --ignore-existing $from/$file $to/$file"); | |
| 72 | } | |
| 73 | } | |
| 74 | } | |
| 75 | ||