usr_sbin/noprompt: Fix a couple of shellcheck warnings
authorDarshaka Pathirana <dpat@syn-net.org>
Fri, 5 Mar 2021 16:51:55 +0000 (17:51 +0100)
committerDarshaka Pathirana <dpat@syn-net.org>
Fri, 3 Dec 2021 11:54:54 +0000 (12:54 +0100)
- SC2048: Use "$@" (with quotes) to prevent whitespace problems.
- SC2086: Double quote to prevent globbing and word splitting.

usr_sbin/noprompt

index d73786e..ff8b573 100755 (executable)
@@ -7,6 +7,6 @@
 ################################################################################
 
 touch /etc/noprompt
-exec $*
+exec "$@"
 
 ## END OF FILE #################################################################