From ca47b459a11f89e7ba1d8d39e5af179f383d4f8d Mon Sep 17 00:00:00 2001 From: dmotte <37443982+dmotte@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:35:32 +0100 Subject: [PATCH] Removed useless quotes in Bash command substitutions --- build/startup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/startup.sh b/build/startup.sh index 87757f5..3e91759 100644 --- a/build/startup.sh +++ b/build/startup.sh @@ -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 @@ -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