Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (22 sloc) 654 Bytes
#!/bin/sh
today=${1:-$(date +%Y-%m-%d)}
result=0
cd "$(dirname "$0")"
for workshop in `find . -type d -name "${today}*"`; do
for type in beginner supporter; do
if [ -f ${workshop}/${type}.yaml ]; then
./aggregate.rb ${workshop} ${type} >/dev/null
if [ ! $? = '0' ]; then
result=1
fi
elif ls ${workshop}/${type}?*.yaml >/dev/null 2>&1; then
echo "Do not delete ${workshop}/${type}.yaml"
result=1
fi
if ls ${workshop}/${type}_*.yaml >/dev/null 2>&1; then
echo "Filename must be ${workshop}/${type}-\${USER}.yaml instead of ${workshop}/${type}_\${USER}.yaml"
result=1
fi
done
done
exit ${result}
You can’t perform that action at this time.