From 21b3784006dc23d188c452e077627a36dd1f3dc0 Mon Sep 17 00:00:00 2001 From: Doc Date: Sun, 14 Dec 2025 21:08:14 -0500 Subject: [PATCH] Corrected command for byte count. - used awk to return only the first column of the output from wc, which is the numerical part. --- scripts/bootstrap-vps-debian12.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap-vps-debian12.sh b/scripts/bootstrap-vps-debian12.sh index a4d1868..1634503 100644 --- a/scripts/bootstrap-vps-debian12.sh +++ b/scripts/bootstrap-vps-debian12.sh @@ -107,7 +107,7 @@ cat << EOF EOF if [ -f "$ANSIUSERDIR/.ssh/authorized_keys" ]; then - BEFORESZ=$(wc -c "$ANSIUSERDIR/.ssh/authorized_keys") + BEFORESZ=$(wc -c "$ANSIUSERDIR/.ssh/authorized_keys" | awk '//{ print $1 }') else BEFORESZ=0 fi @@ -116,7 +116,7 @@ cat >> $ANSIUSERDIR/.ssh/authorized_keys err=$? if [ -f "$ANSIUSERDIR/.ssh/authorized_keys" ]; then - AFTERSZ=$(wc -c "$ANSIUSERDIR/.ssh/authorized_keys") + AFTERSZ=$(wc -c "$ANSIUSERDIR/.ssh/authorized_keys" | awk '//{ print $1 }') if [ ! $AFTERSZ -gt $BEFORESZ ]; then cat << EOF