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

repush: fix issue 21 (uppercase file extensions) #22

Merged
merged 1 commit into from
Jan 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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