Only one of these tests was valid, removing the bad one
[working/Evergreen.git] / Open-ILS / updates / download
1 #!/bin/bash
2 FILENAME=$(basename "$PATH_INFO")
3 FILENAME=${FILENAME%.xpi}
4 if [ -n "$FILENAME" -a -f "./clients/$FILENAME.xpi" ]; then
5 echo "Content-Disposition: attachment"
6 echo ""
7 cat "./clients/$FILENAME.xpi"
8 else
9 echo ""
10 echo "?"
11 fi