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



commit 27cefd4fe899b33af9f4163628e4488f15b4ac94
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]