summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-06-12 16:56:36 +0200
committerBastien Nocera <hadess@hadess.net>2013-06-13 10:44:38 +0200
commit8a88eee256fa9ec01c090605f686376869596859 (patch)
tree9e89d79fd2e1e0e7b5156443eaa2140a94baab85
parentb0ca46dc389ebe9201f8c9bf6c046602900d22b8 (diff)
downloadgnome-settings-daemon-8a88eee256fa9ec01c090605f686376869596859.tar.gz
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
-rwxr-xr-xgnome-settings-daemon/gnome-settings-daemon-localeexec.in5
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 d82b8bf5..eed91a4f 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