1#!/bin/sh2. "${0%/*}/common.sh"34cat >current/file1 <<-EOF5 fooooobaaarr6 foobar7EOF89mkdir current/ignored10cat >current/ignored/file2 <<-EOF11 test12312 barfoooooooo13EOF14cat >current/ignored/file3 <<-EOF15 116 217EOF18chmod -w current/ignored/*1920cat >current-expected/file1 <<-EOF21 foobar22EOF2324cat >archive-expected/file1 <<-EOF25 fooooobaaarr26EOF2728archive_logs -e "ignored.*"29rm -r current/ignored </dev/null30check_dirs