summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-03 15:46:11 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-11-03 15:46:11 -0500
commit376be13f4632ba7a8372a018b2d2734828b9856f (patch)
tree1e6abd580ab0dec0d1899c543f3032d6fa3c4aa1
parent7f48764d173c6bd7eb3191000a482c0d5d7400c1 (diff)
edje_recc: don't use negative exit code in a /bin/sh script
Apparently this isn't well supported by dash, which will print an error and return a 2, where zsh and bash will return 255. Explicitly returning 255 seems least surprising. see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772322 #IHaveNoIdeaWhatThisScriptDoes
-rw-r--r--src/bin/edje/edje_recc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/edje/edje_recc b/src/bin/edje/edje_recc
index 2ae81ad277..837fa62e12 100644
--- a/src/bin/edje/edje_recc
+++ b/src/bin/edje/edje_recc
@@ -14,7 +14,7 @@ usage () {
14 echo "-no-raw Do NOT allow images to be zero compression" 14 echo "-no-raw Do NOT allow images to be zero compression"
15 echo "-min-quality VAL Do NOT allow lossy images with quality < VAL (0-100)" 15 echo "-min-quality VAL Do NOT allow lossy images with quality < VAL (0-100)"
16 echo "-max-quality VAL Do NOT allow lossy images with quality > VAL (0-100)" 16 echo "-max-quality VAL Do NOT allow lossy images with quality > VAL (0-100)"
17 exit -1 17 exit 255
18} 18}
19 19
20if [ $# -lt 1 ]; then 20if [ $# -lt 1 ]; then