Commit 2572a7e7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add test_obsoleted

parent 8e7655b6
#!/bin/sh
check()
{
[ "$2" != "$3" ] && echo "FATAL with '$1': result '$3' do not match with '$2'" || echo "OK for '$1' with '$2'"
}
func()
{
echo "$VAR"
}
is_obsoleted()
{
test -z "$(find "$1" -cmin -1 2>/dev/null)"
}
touch test
is_obsoleted test && echo "OBSOLETED or missed" || echo "OK"
is_obsoleted /etc/fstab && echo "OBSOLETED or missed" || echo "OK"
is_obsoleted /var/empty/none && echo "OBSOLETED or missed" || echo "OK"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment