Tip for setting the night version of “ZIG”

LINUX sh and JQ comande-lin JSON processor

curl https://ziglang.org/download/index.json | jq '.master.version' |
while IFS= read -r indexlinux; do
    master_version="$(echo $indexlinux | tr -d '"')"
    tarbal='https://ziglang.org/builds/zig-x86_64-linux-'$master_version'.tar.xz'
    linux='zig-x86_64-linux-'$master_version'.tar.xz'
    rep='zig-x86_64-linux-'$master_version

    wget  "$tarbal"
    tar -xf "$linux"
   mv "$rep" $HOME/.zig
   rm "$linux"
done

ex: look