From 5217a0d810558232a4471f2e3c41929af4b66654 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 2 Oct 2025 12:50:39 +0200 Subject: [PATCH] asdf --- nuxt/static/build.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nuxt/static/build.sh b/nuxt/static/build.sh index 3fc1d9d..dc8faa4 100755 --- a/nuxt/static/build.sh +++ b/nuxt/static/build.sh @@ -4,11 +4,23 @@ set -e # Validate SSH private key if [ -n "$KEY" ]; then echo "Validating SSH private key..." - echo "$KEY" | ssh-keygen -y -f - + + # Create .ssh directory if it doesn't exist + mkdir -p ~/.ssh + chmod 700 ~/.ssh + + # Write key to file + echo "$KEY" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + cat ~/.ssh/id_rsa + + # Validate the key + ssh-keygen -y -f ~/.ssh/id_rsa if [ $? -eq 0 ]; then echo "✓ SSH private key is valid" else echo "✗ SSH private key is invalid" + rm -f ~/.ssh/id_rsa exit 1 fi else