diff options
author | zatherz | 2016-03-19 22:24:04 +0100 |
---|---|---|
committer | zatherz | 2016-03-19 22:24:04 +0100 |
commit | f58b13490a2a4a96fc6e590722be5038558be031 (patch) | |
tree | be95cbe8b6a27e5ab41592ddaef43af3bc2c4582 | |
parent | bbffc249a63ac14f488549c86b8f9bf8eba8273b (diff) | |
download | aur-f58b13490a2a4a96fc6e590722be5038558be031.tar.gz |
Fix hqx and xbr scripts to check for incorrect scale
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rwxr-xr-x | hqx.sh | 3 | ||||
-rwxr-xr-x | xbr.sh | 3 |
4 files changed, 6 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = pixelscale-git pkgdesc = Standalone xBR/HQx pixel art scaling library and standalone executable (includes hqx compatibility script, pixelscale binary and xbr script) pkgver = 4.3835e97 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Treeki/libxbr-standalone arch = x86_64 arch = i686 @@ -3,7 +3,7 @@ pkgname=pixelscale-git _pkgname=libxbr-standalone pkgver=4.3835e97 -pkgrel=1 +pkgrel=2 pkgdesc="Standalone xBR/HQx pixel art scaling library and standalone executable (includes hqx compatibility script, pixelscale binary and xbr script)" url="https://github.com/Treeki/libxbr-standalone" arch=('x86_64' 'i686') @@ -9,10 +9,11 @@ scale=4 while getopts ":s:" option; do case $option in s) + scale="$OPTARG" if [ "$scale" -ne 2 ] && [ "$scale" -ne 3 ] && [ "$scale" -ne 4 ]; then echo "Only scale factors of 2, 3 and 4 are supported" + exit 1 fi - scale="$OPTARG" ;; \?) echo "Invalid option: -$OPTARG" >&2 @@ -9,10 +9,11 @@ scale=4 while getopts ":s:" option; do case $option in s) + scale="$OPTARG" if [ "$scale" -ne 2 ] && [ "$scale" -ne 3 ] && [ "$scale" -ne 4 ]; then echo "Only scale factors of 2, 3 and 4 are supported" + exit 1 fi - scale="$OPTARG" ;; \?) echo "Invalid option: -$OPTARG" >&2 |