usr_share/run-screen: Fix a couple of shellcheck warnings
authorDarshaka Pathirana <dpat@syn-net.org>
Fri, 5 Mar 2021 16:53:23 +0000 (17:53 +0100)
committerDarshaka Pathirana <dpat@syn-net.org>
Fri, 3 Dec 2021 11:54:54 +0000 (12:54 +0100)
- SC2046: Quote this to prevent word splitting.
- SC2006: Use $(..) instead of legacy `..`.

usr_share/run-screen

index cd55f65..4832feb 100755 (executable)
@@ -12,7 +12,7 @@ mkdir -m 700 "${SCREENDIR_}/S-$USER" >/dev/null 2>&1
 
 # now run screen with config
 
-  if [ `id -u` = 0 ] ; then
+  if [ "$(id -u)" = 0 ] ; then
     exec screen -U -c /etc/grml/screenrc
   elif [ -r "$HOME/.screenrc" ] ; then
     exec screen -U -c "$HOME/.screenrc"