Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
6bbe5369
Commit
6bbe5369
authored
May 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-sh-functions: add more diag info about tmp, drop rmdir for removed tmp files
parent
ca9fd666
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
epm-sh-functions
bin/epm-sh-functions
+8
-3
No files found.
bin/epm-sh-functions
View file @
6bbe5369
...
...
@@ -771,6 +771,10 @@ assure_tmpdir()
warning
"Your have no TMPDIR defined. Using
$TMPDIR
as fallback."
fi
if
[
!
-d
"
$TMPDIR
"
]
;
then
fatal
"TMPDIR
$TMPDIR
does not exist."
fi
if
[
!
-w
"
$TMPDIR
"
]
;
then
fatal
"TMPDIR
$TMPDIR
is not writable."
fi
...
...
@@ -840,16 +844,17 @@ __epm_remove_tmp_files()
trap
"-"
EXIT
[
-n
"
$DEBUG
"
]
&&
return
0
[
-n
"
$verbose
"
]
&&
info
"Removing tmp files on exit ..."
if
[
-n
"
$to_clean_tmp_dirs
"
]
;
then
echo
"
$to_clean_tmp_dirs
"
|
while
read
p
;
do
rm
-rf
"
$p
"
2>/dev/null
rm
$verbose
-rf
"
$p
"
2>/dev/null
done
fi
if
[
-n
"
$to_clean_tmp_files
"
]
;
then
echo
"
$to_clean_tmp_files
"
|
while
read
p
;
do
rm
-f
"
$p
"
2>/dev/null
rmdir
"
$(
dirname
"
$p
"
)
"
2>/dev/null
rm
$verbose
-f
"
$p
"
2>/dev/null
done
fi
...
...
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