Skip to content
Snippets Groups Projects
Verified Commit b8b9eae5 authored by David Beniamine's avatar David Beniamine
Browse files

Fix clean.sh

parent 3e2c32d1
Branches
No related tags found
No related merge requests found
......@@ -18,10 +18,11 @@
conf_dir="/etc/registry"
conf_file="$conf_dir/hosts"
cp $conf_file $conf_file.old
while read line
do
if [ ! -z "$line" ] && \
[ "$(echo $line | cut -d ' ' -f 1)" -lt "$(date -d '-6 month' +%Y%m%d)" ]
[ "$(echo $line | cut -d ' ' -f 1)" -gt "$(date -d '-6 month' +%Y%m%d)" ]
then
LINES="$LINES\n$line"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment