Fix typo in gnome-shell-extension-prefs

Environment variables should be checked for zero length,
instead of non-zero. This prevented the script to run
correctly in a jhbuild shell for example.

https://bugzilla.gnome.org/show_bug.cgi?id=693031
This commit is contained in:
Stefano Facchini 2013-02-01 19:33:20 +01:00
parent eab497a814
commit 9bcce4f271

View File

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
if [ -n "$GI_TYPELIB_PATH" ]; then if [ -z "$GI_TYPELIB_PATH" ]; then
export GI_TYPELIB_PATH=@pkglibdir@ export GI_TYPELIB_PATH=@pkglibdir@
else else
export GI_TYPELIB_PATH=@pkglibdir@:$GI_TYPELIB_PATH export GI_TYPELIB_PATH=@pkglibdir@:$GI_TYPELIB_PATH
fi fi
if [ -n "$LD_LIBRARY_PATH" ] ; then if [ -z "$LD_LIBRARY_PATH" ] ; then
export LD_LIBRARY_PATH=@pkglibdir@ export LD_LIBRARY_PATH=@pkglibdir@
else else
export LD_LIBRARY_PATH=@pkglibdir@:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=@pkglibdir@:$LD_LIBRARY_PATH