From: Yonghee Han Date: Mon, 29 May 2017 06:17:25 +0000 (+0900) Subject: fix the error of dir_purge_tool.sh X-Git-Tag: submit/trunk/20190927.012743~451 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F131428%2F1;p=services%2Fjenkins-scripts.git fix the error of dir_purge_tool.sh Change-Id: I13c3e31fd291bc36f5bff3cbb4a5a491e4a859be --- diff --git a/dir-purge-tool.sh b/dir-purge-tool.sh index 328ea92..244c5ca 100755 --- 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`