This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |