projects
/
services
/
jenkins-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fd4e75
)
Delete Tizen older directories based on policy: modify to search all directory
03/62303/2
author
Yonghee Han
<onstudy@samsung.com>
Tue, 15 Mar 2016 09:04:08 +0000
(18:04 +0900)
committer
Sehong Na
<sehong.na@samsung.com>
Wed, 16 Mar 2016 01:47:46 +0000
(18:47 -0700)
Change-Id: Ia848a4ed16f0c3ed92079bed992e87017ecd8ad4
dir-purge-tool.sh
patch
|
blob
|
history
diff --git
a/dir-purge-tool.sh
b/dir-purge-tool.sh
index
1e2e4e0
..
e5d8f5e
100755
(executable)
--- a/
dir-purge-tool.sh
+++ b/
dir-purge-tool.sh
@@
-16,7
+16,7
@@
for dir in $dirlist; do
link=`readlink $latest`
[ $basen = ${link%/} ] && continue
fi
- tsext="${dir##$path*/
tizen
*_}"
+ tsext="${dir##$path*/*_}"
timestamp="${tsext%%.*}"
reltime=`date --date=$timestamp +"%s"`
if [ $((now - reltime)) -gt $maxage ]; then