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:
b8d0512
)
fix the error of dir_purge_tool.sh
28/131428/1
author
Yonghee Han
<onstudy@samsung.com>
Mon, 29 May 2017 06:17:25 +0000
(15:17 +0900)
committer
Yonghee Han
<onstudy@samsung.com>
Mon, 29 May 2017 06:17:25 +0000
(15:17 +0900)
Change-Id: I13c3e31fd291bc36f5bff3cbb4a5a491e4a859be
dir-purge-tool.sh
patch
|
blob
|
history
diff --git
a/dir-purge-tool.sh
b/dir-purge-tool.sh
index
328ea92
..
244c5ca
100755
(executable)
--- a/
dir-purge-tool.sh
+++ b/
dir-purge-tool.sh
@@
-6,7
+6,7
@@
remove_old() {
path=$1
maxage=$(($2 * 86400))
-dirlist=`find $path -type d -regextype posix-awk -regex $PURGE_PATTERN -not -regex '.*-base.*'
+dirlist=`find $path -type d -regextype posix-awk -regex $PURGE_PATTERN -not -regex '.*-base.*'
`
now=`date +"%s"`
for dir in $dirlist; do
dirn=`dirname $dir`