geeqie/geeqie-1.1-fix-bashisms.patch

22 lines
678 B
Diff

diff -Ndur geeqie-1.1/plugins/rotate/geeqie-rotate geeqie-1.1-fix-bashisms/plugins/rotate/geeqie-rotate
--- geeqie-1.1/plugins/rotate/geeqie-rotate 2012-08-12 23:13:40.000000000 +0300
+++ geeqie-1.1-fix-bashisms/plugins/rotate/geeqie-rotate 2014-11-17 05:25:16.014771785 +0200
@@ -8,7 +8,7 @@
rotate()
{
ext=`echo "${1##*.}" |tr "[:upper:]" "[:lower:]"`
- [ "x$ext" == "x" ] && return 1 #no extension
+ [ "x$ext" = "x" ] && return 1 #no extension
gq_metadata="$GQ_METADATA_DIR/$1.gq.xmp"
if [ -f "$gq_metadata" ]; then
@@ -48,7 +48,7 @@
}
get_sidecars=
-if [ "x$1" == "x-g" ] ; then
+if [ "x$1" = "x-g" ] ; then
get_sidecars=yes
shift
fi