From fcda621b7e28f66104c632ef122834ed6a349a13 Mon Sep 17 00:00:00 2001 From: dmotte <37443982+dmotte@users.noreply.github.com> Date: Wed, 15 Nov 2023 00:48:09 +0100 Subject: [PATCH] Shorter syntax for Bash for loops over args --- build/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/startup.sh b/build/startup.sh index c232064..87757f5 100644 --- a/build/startup.sh +++ b/build/startup.sh @@ -25,7 +25,7 @@ fi :> /etc/ssh/sshd_config_users # Empty file -for arg in "$@"; do +for arg; do user="$(echo "$arg" | cut -d: -f1)" permits="$(echo "$arg" | cut -d: -f2- | tr ',' ' ')"