diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-06-12 16:56:36 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-06-13 10:44:38 +0200 |
commit | 8a88eee256fa9ec01c090605f686376869596859 (patch) | |
tree | 9e89d79fd2e1e0e7b5156443eaa2140a94baab85 /gnome-settings-daemon | |
parent | b0ca46dc389ebe9201f8c9bf6c046602900d22b8 (diff) | |
download | gnome-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
Diffstat (limited to 'gnome-settings-daemon')
-rwxr-xr-x | gnome-settings-daemon/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 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 |