Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Oskars Germovs <oskars_germovs@inbox.lv>
  • Loading branch information
Faks committed Mar 22, 2024
1 parent 1565d52 commit 0e50d4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions workspace/install_ssh_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0e50d4c

Please sign in to comment.