Skip to content

Commit

Permalink
usr_share/run-screen: Fix a couple of shellcheck warnings
Browse files Browse the repository at this point in the history
- SC2046: Quote this to prevent word splitting.
- SC2006: Use $(..) instead of legacy `..`.
  • Loading branch information
jkirk committed Dec 3, 2021
1 parent c766750 commit 98d1b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr_share/run-screen
Expand Up @@ -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"
Expand Down

0 comments on commit 98d1b69

Please sign in to comment.