[gnome-settings-daemon] main: Use sh not bash for the localeexec helper



commit 8a88eee256fa9ec01c090605f686376869596859
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 12 16:56:36 2013 +0200

    main: Use sh not bash for the localeexec helper
    
    Replace the bash-only substitution with an sh-compatible version.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701322

 .../gnome-settings-daemon-localeexec.in            |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnome-settings-daemon/gnome-settings-daemon-localeexec.in 
b/gnome-settings-daemon/gnome-settings-daemon-localeexec.in
index d82b8bf..eed91a4 100755
--- a/gnome-settings-daemon/gnome-settings-daemon-localeexec.in
+++ b/gnome-settings-daemon/gnome-settings-daemon-localeexec.in
@@ -1,7 +1,8 @@
-#! /bin/bash
+#!/bin/sh
 
 SETTING=$(gsettings get org.gnome.system.locale region)
-REGION=${SETTING//\'/}
+REGION=${SETTING#\'}
+REGION=${REGION%\'}
 
 if [ -n "$REGION" ]; then
   export LC_TIME=$REGION


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]