diff --git a/tostracker.sh b/tostracker.sh index d74e5ef..7bccc7f 100755 --- a/tostracker.sh +++ b/tostracker.sh @@ -84,9 +84,9 @@ function getcontent() { # 1=url 2=outputfile local outfile="$2" if [[ -n $LYNX ]]; then - curl -sL "$url" | ${LYNX} -stdin -dump > "${out}" + curl -sL "$url" | ${LYNX} -stdin -dump > "${outfile}" else - curl -sL "$url" | ${SED} 's/>/>\n/g;s/$" > "${out}" + curl -sL "$url" | ${SED} 's/>/>\n/g;s/$" > "${outfile}" fi }