X-Git-Url: https://git.ao2.it/conversations_http_downloader.git/blobdiff_plain/bc6c68a6ef93db27ee08b331e08790ade0d040e4..ddc6d336faa0901fd33cf9de30daaf670c53d68b:/open_wrapper.sh diff --git a/open_wrapper.sh b/open_wrapper.sh index 6a3d0d3..7f35ce8 100755 --- a/open_wrapper.sh +++ b/open_wrapper.sh @@ -32,7 +32,7 @@ decrypted_file() echo "${TEMPDIR}/${FILENAME}" } -if [ ${URL: -97:1} = "#" ]; +if echo -n "$URL" | grep -q '#[[:xdigit:]]\{96\}$'; then DESTINATION=$(decrypted_file "$URL") else