From 9f2997d0ca1f664e02962eacf4155c0782e80b58 Mon Sep 17 00:00:00 2001 From: Yonghee Han Date: Mon, 29 May 2017 15:17:25 +0900 Subject: [PATCH] fix the error of dir_purge_tool.sh Change-Id: I13c3e31fd291bc36f5bff3cbb4a5a491e4a859be --- dir-purge-tool.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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` -- 2.7.4