[gnome-session] Remove ShellCheck warning from gnome-session.in
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] Remove ShellCheck warning from gnome-session.in
- Date: Wed, 24 Jun 2020 17:04:26 +0000 (UTC)
commit e05c6404c99426fff8a940b5b916b3deef7a68aa
Author: Hugo Musso Gualandi <hugo_musso_gualandi hotmail com>
Date: Wed Jun 17 19:42:36 2020 -0300
Remove ShellCheck warning from gnome-session.in
Explicitly setting the variable to an empty string is a bit more more readable.
See https://www.shellcheck.net/wiki/SC1007
gnome-session/gnome-session.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnome-session/gnome-session.in b/gnome-session/gnome-session.in
index edec0ae0..ddd1a591 100755
--- a/gnome-session/gnome-session.in
+++ b/gnome-session/gnome-session.in
@@ -13,7 +13,7 @@ if [ "x$XDG_SESSION_TYPE" = "xwayland" ] &&
fi
fi
-SETTING=$(G_MESSAGES_DEBUG= gsettings get org.gnome.system.locale region)
+SETTING=$(G_MESSAGES_DEBUG='' gsettings get org.gnome.system.locale region)
REGION=${SETTING#\'}
REGION=${REGION%\'}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]