Skip to content

Commit be644a3

Browse files
author
Raymond Benc
committed
[save] Marking 4.0.6
1 parent 207eb45 commit be644a3

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

PF.Base/include/checksum/md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
bef1631c7b661d6d05d14ab18fa751e9 composer.lock
2-
049cde4079d0d6532f4e92b2f302c252 include/checksum/md5
2+
1d8d432786d7c5bcb7ed227c4d688ca6 include/checksum/md5
33
d7f7e3d45fa8602bec28e7a51c902110 include/cron/exec.php
44
68b329da9893e34099c7d8ad5cb9c940 include/cron/index.html
55
68b329da9893e34099c7d8ad5cb9c940 include/index.html
@@ -60,7 +60,7 @@ c85137e6da26d1b75517b2f374ed3019 include/library/phpfox/parse/input.class.php
6060
23060e0d760b3440e7878b044fa87fae include/library/phpfox/parse/output.class.php
6161
9c2cbf710df26baebd4dc9a5d915e1c3 include/library/phpfox/parse/wiki.class.php
6262
31204c13d87c066123abba90adfda243 include/library/phpfox/phpfox/api.class.php
63-
1f9dfadde9096cc44c202ef44a7bfa89 include/library/phpfox/phpfox/phpfox.class.php
63+
da083d96b7389975b64d4e5043872050 include/library/phpfox/phpfox/phpfox.class.php
6464
ee2cf709f67660926da5a6a3dbfccbe2 include/library/phpfox/phpfox/process.class.php
6565
6f979c415396c9a1a3fa3da9f86941de include/library/phpfox/plugin/plugin.class.php
6666
f99c4dcc70d2f6bbbb4371bf91336156 include/library/phpfox/request/request.class.php
@@ -4455,7 +4455,7 @@ cb861100ed86b388a09980ae4f27bdf4 theme/install/default/template/license.html.php
44554455
68b329da9893e34099c7d8ad5cb9c940 theme/install/index.html
44564456
5d5357cb3704e1f43a1f5bfed2aebf42 tools/bootstrap.css
44574457
f353d08bce4ced416868b72b77504cdc tools/debug.php
4458-
cfa3abf5a245e827bf8ec61f73e2a7c1 tools/dev.php
4458+
84d01d43a02c83e392a165f505b9da94 tools/dev.php
44594459
da34dec69cabadfc41e076fc2796e079 tools/phpfox.json
44604460
723ff3552779a963aa60da31c4a7d237 tools/ping.php
44614461
03d6bb080eec003cccf7e3d030f1383f vendor/autoload.php

PF.Base/include/library/phpfox/phpfox/phpfox.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Phpfox
2727
/**
2828
* Product Version : major.minor.maintenance [alphaX, betaX or rcX]
2929
*/
30-
const VERSION = '4.0.5';
30+
const VERSION = '4.0.6';
3131

3232
/**
3333
* Product Code Name

PF.Base/tools/dev.php

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,18 @@ function l($log = null) {
205205
l('<div class="panel-body">');
206206
// l('Changed to directory: ' . $path);
207207

208-
$status = shell_exec('git status');
209-
l($status);
208+
$gitRepo = $path . '.git';
209+
$isGit = false;
210+
$status = '# modified: #';
211+
if (is_dir($gitRepo)) {
212+
$isGit = true;
213+
$status = shell_exec('git status');
214+
l('Has git.');
215+
l($status);
216+
}
217+
else {
218+
l('No git.');
219+
}
210220

211221
if (!strpos($status, 'modified:')) {
212222
l('up-to-date. Nothing to do.');
@@ -220,9 +230,11 @@ function l($log = null) {
220230
$json->version = $new;
221231
file_put_contents($path . 'app.json', json_encode($json, JSON_PRETTY_PRINT));
222232

223-
l(shell_exec('git add --all'));
224-
l(shell_exec('git commit -m "Automated Dist: ' . $dist . '"'));
225-
l(shell_exec('git push -u origin master'));
233+
if ($isGit) {
234+
l(shell_exec('git add --all'));
235+
l(shell_exec('git commit -m "Automated Dist: ' . $dist . '"'));
236+
l(shell_exec('git push -u origin master'));
237+
}
226238

227239
if ($exportPath) {
228240
$dir = $exportPath . $json->id . '/';

0 commit comments

Comments
 (0)