Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7681)

Unified Diff: chrome/installer/linux/common/postinst.include

Issue 25447004: Linux: fix calls to "which" in maintainer scripts to be non-fatal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/installer/linux/common/prerm.include » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/linux/common/postinst.include
diff --git a/chrome/installer/linux/common/postinst.include b/chrome/installer/linux/common/postinst.include
index 1ddc7a22921ffc8f4d0d8effc58c083807c651bd..d286b5387c915e6573e66e8736905505fab31714 100644
--- a/chrome/installer/linux/common/postinst.include
+++ b/chrome/installer/linux/common/postinst.include
@@ -1,5 +1,5 @@
# Add icons to the system icons
-XDG_ICON_RESOURCE="`which xdg-icon-resource 2> /dev/null`"
+XDG_ICON_RESOURCE="`which xdg-icon-resource 2> /dev/null || true`"
if [ ! -x "$XDG_ICON_RESOURCE" ]; then
echo "Error: Could not find xdg-icon-resource" >&2
exit 1
@@ -10,8 +10,8 @@ for icon in "@@INSTALLDIR@@/product_logo_"*.png; do
done
# Add an entry to the system menu
-XDG_DESKTOP_MENU="`which xdg-desktop-menu 2> /dev/null`"
-UPDATE_MENUS="`which update-menus 2> /dev/null`"
+XDG_DESKTOP_MENU="`which xdg-desktop-menu 2> /dev/null || true`"
+UPDATE_MENUS="`which update-menus 2> /dev/null || true`"
if [ ! -x "$XDG_DESKTOP_MENU" ]; then
echo "Error: Could not find xdg-desktop-menu" >&2
exit 1
« no previous file with comments | « no previous file | chrome/installer/linux/common/prerm.include » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698