From b94ed6ad9565d08786f19f795d8c7ee14397ca9a Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 6 Jan 2020 09:19:40 +0100 Subject: [PATCH] repush: fix issue 21 (uppercase file extensions) --- host/repush.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/repush.sh b/host/repush.sh index a948462..4e46233 100755 --- a/host/repush.sh +++ b/host/repush.sh @@ -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