Skip to content

Commit

Permalink
Shorter syntax for Bash for loops over args
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Nov 14, 2023
1 parent 5715295 commit fcda621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ',' ' ')"

Expand Down

0 comments on commit fcda621

Please sign in to comment.