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

Commit

Permalink
Merge pull request #22 from vdrummer/iss21
Browse files Browse the repository at this point in the history
repush: fix issue 21 (uppercase file extensions)
  • Loading branch information
CTXz authored Jan 6, 2020
2 parents 4d1fada + b94ed6a commit 853173a
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 853173a

Please sign in to comment.