Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
provision
Commits
5288f576
Commit
5288f576
authored
Jun 08, 2009
by
anarcat
Committed by
anarcat
Jun 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
properly silence that ret warning
parent
09198474
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
provision.inc
provision.inc
+3
-1
No files found.
provision.inc
View file @
5288f576
...
...
@@ -134,6 +134,7 @@ function provision_render_config($template, $variables) {
* - safety checking since we don't necessarly trust the removed files
*/
function
_provision_recursive_delete
(
$path
)
{
$ret
=
1
;
if
(
is_dir
(
$path
))
{
$d
=
dir
(
$path
);
while
((
$entry
=
$d
->
read
())
!==
FALSE
)
{
...
...
@@ -154,8 +155,9 @@ function _provision_recursive_delete($path) {
$ret
=
$ret
&&
$rm
;
}
else
{
$r
et
=
provision_path
(
'unlink'
,
$path
,
TRUE
,
NULL
,
$r
m
=
provision_path
(
'unlink'
,
$path
,
TRUE
,
NULL
,
dt
(
'Deleting @path file failed.'
,
array
(
'@path'
=>
$path
)));
$ret
=
$ret
&&
$rm
;
}
return
$ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment