From 0e50d4c9bbc4c2435ca5c317a5d63dae3e275456 Mon Sep 17 00:00:00 2001 From: Oskars Germovs Date: Sat, 23 Mar 2024 01:32:36 +0200 Subject: [PATCH] @wip Signed-off-by: Oskars Germovs --- workspace/install_ssh_keys.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workspace/install_ssh_keys.sh b/workspace/install_ssh_keys.sh index 98de07dc4b..dce6e483f9 100644 --- a/workspace/install_ssh_keys.sh +++ b/workspace/install_ssh_keys.sh @@ -28,12 +28,12 @@ files=("id_rsa" "id_rsa.pub") for file in "${files[@]}"; do if [ -f "$secure_path/$file" ]; then cp "$tmp_dir/$secure_path/$file" "$tmp_dir/$file" || { echo "Failed to copy $tmp_dir/$secure_path/$file."; exit 1; } - rm -rf "$tmp_dir/$secure_path" || { echo "Failed to remove '$tmp_dir/$secure_path'."; exit 1; } - echo "Removed '$tmp_dir/$secure_path'." + #rm -rf "$tmp_dir/$secure_path" || { echo "Failed to remove '$tmp_dir/$secure_path'."; exit 1; } + #echo "Removed '$tmp_dir/$secure_path'." else cp "$tmp_dir/$insecure_path/$file" "$tmp_dir/$file" || { echo "Failed to copy $tmp_dir/$insecure_path/$file."; exit 1; } - rm -rf "$tmp_dir/$insecure_path" || { echo "Failed to remove '$tmp_dir/$insecure_path'."; exit 1; } - echo "Removed '$tmp_dir/$insecure_path'." + #rm -rf "$tmp_dir/$insecure_path" || { echo "Failed to remove '$tmp_dir/$insecure_path'."; exit 1; } + #echo "Removed '$tmp_dir/$insecure_path'." fi done