Skip to content

Commit

Permalink
Removed useless quotes in Bash command substitutions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Jan 20, 2024
1 parent b2eda7f commit ca47b45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ fi
:> /etc/ssh/sshd_config_users # Empty file

for arg; do
user="$(echo "$arg" | cut -d: -f1)"
permits="$(echo "$arg" | cut -d: -f2- | tr ',' ' ')"
user=$(echo "$arg" | cut -d: -f1)
permits=$(echo "$arg" | cut -d: -f2- | tr ',' ' ')

# If the user doesn't exist
if ! id "$user" >/dev/null 2>&1; then
Expand All @@ -49,7 +49,7 @@ for arg; do
done

for dir in /home/*; do
user="$(basename "$dir")"
user=$(basename "$dir")

if [ ! -d "/ssh-client-keys/$user" ]; then
# If mkdir fails, the /ssh-client-keys directory is probably mounted in
Expand Down

0 comments on commit ca47b45

Please sign in to comment.