From: Darshaka Pathirana Date: Fri, 5 Mar 2021 16:53:23 +0000 (+0100) Subject: usr_share/run-screen: Fix a couple of shellcheck warnings X-Git-Tag: v2.11.0~1^2~3 X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=commitdiff_plain;h=98d1b69753568d367f9602c4102e2b984a17d497 usr_share/run-screen: Fix a couple of shellcheck warnings - SC2046: Quote this to prevent word splitting. - SC2006: Use $(..) instead of legacy `..`. --- diff --git a/usr_share/run-screen b/usr_share/run-screen index cd55f65..4832feb 100755 --- a/usr_share/run-screen +++ b/usr_share/run-screen @@ -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"