]> granicus.if.org Git - imagemagick/commitdiff
Fix man, thanks @KurtPfeifle
authorprobonopd <probonopd@users.noreply.github.com>
Thu, 9 Nov 2017 20:14:19 +0000 (21:14 +0100)
committerDirk Lemstra <dlemstra@users.noreply.github.com>
Sun, 12 Nov 2017 18:11:45 +0000 (19:11 +0100)
AppRun

diff --git a/AppRun b/AppRun
index 36c09eac9d4f9c0975f0d282ce1caa6038efbedf..2f051473ac855ffd5b4c46799da1f86c25271e62 100644 (file)
--- a/AppRun
+++ b/AppRun
@@ -9,13 +9,11 @@ HERE="$(dirname "$(readlink -f "${0}")")"
 
 export MAGICK_HOME="$HERE/usr" # http://www.imagemagick.org/QuickStart.txt
 export MAGICK_CONFIGURE_PATH="$HERE/usr/lib/ImageMagick-7.0.7/config-Q16/" # Undocumented?
-export MANPATH="$HERE/usr/share/man:$MANPATH"
-export INFOPATH="$HERE/usr/share/info:$MANPATH"
-
 if [ "$1" == "man" ] ; then
-  shift ; exec "$@" ; exit $?
+  export MANPATH="$HERE/usr/share/man:$MANPATH" ; exec "$@" ; exit $?
 elif [ "$1" == "info" ] ; then
-  shift ; exec "$@" ; exit $?
+  export INFOPATH="$HERE/usr/share/info:$INFOPATH" ; exec "$@" ; exit $?
 fi
 
 if [ ! -z $APPIMAGE ] ; then