8 lines
87 B
Bash
Executable File

#!/bin/sh
if [ -n "$2" ]; then
curl "$2.rate.sx/$1"
else
curl "rate.sx/${1:-}"
fi