#/usr/bin/bash if [ -z "$DOWNLOADS" ];then echo "DOWNLOADS env variable not set" exit 1 fi echo "$(newest $DOWNLOADS)"