#!/bin/sh
set -e
#FILE=$(find -L . -type f -name "*.jpg" -or -name "*.png" -and -not -name "*.scale.*" | shuf -n 1)
FILE=$(shuf -n 1 index)
echo "Status: 302 Found"
echo "Location: /Image/_public/$FILE"
echo ""
#MIME=$(file -Lbi $FILE)
#echo "Content-Type: $MIME"
#echo ""
#cat $FILE
