usr_sbin/dirvish-setup: Fix some shellcheck warnings
authorDarshaka Pathirana <dpat@syn-net.org>
Thu, 11 Feb 2021 09:33:25 +0000 (10:33 +0100)
committerDarshaka Pathirana <dpat@syn-net.org>
Fri, 3 Dec 2021 11:54:54 +0000 (12:54 +0100)
commit96f6cc16f2a585d52dbc92273c90d686c4d7bb9b
treeed58f90b3dd6511b69694e589944074c07f7eb0a
parent5d1287bc97c72e387c7cef4840d8c211504becd1
usr_sbin/dirvish-setup: Fix some shellcheck warnings

- Ignore SC1091: Not following: /etc/grml/script-functions was not specified as input (see shellcheck -x).
- Ignore SC1091: Not following: /etc/grml/lsb-functions was not specified as input (see shellcheck -x).
- SC2046: Quote this to prevent word splitting.
- SC2006: Use $(..) instead of legacy `..`.
- Ignore SC1090: Can't follow non-constant source. Use a directive to specify location.
- SC2046: Quote this to prevent word splitting.
- SC2006: Use $(..) instead of legacy `..`.
- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
- SC2046: Quote this to prevent word splitting.
- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
usr_sbin/dirvish-setup