Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
repush: fix issue 21 (uppercase file extensions)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdrummer committed Jan 6, 2020
1 parent 4d1fada commit b94ed6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/repush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function check_file {
echo "repush: Unsupported file format: $1"
echo "repush: Only PDFs and EPUBs are supported"
return 0
elif [ -z $is_directory ] && ! echo "$1" | grep -qP "\.pdf$" && ! echo "$1" | grep -qP "\.epub$" ; then
elif [ -z $is_directory ] && ! echo "$1" | grep -qi "\.pdf$" && ! echo "$1" | grep -qi "\.epub$" ; then
echo "repush: File extension invalid or missing: $1"
return 0
elif echo "$1" | grep -q '"'; then
Expand Down

0 comments on commit b94ed6a

Please sign in to comment.