Skip to content

Instantly share code, notes, and snippets.

View froblesmartin's full-sized avatar
😀

Francisco Robles Martín froblesmartin

😀
View GitHub Profile
@froblesmartin
froblesmartin / replicate-gcp-secrets.sh
Created February 16, 2024 02:55
Copy GCP Secret Manager secrets to a different project
#!/bin/zsh
function transform_output_to_array() {
local output="$1"
local array=()
local skip_first=true
while IFS= read -r line; do
if ${skip_first}; then
skip_first=false