version="1.13" url="https://renderdoc.org/stable/$version/renderdoc_$version.tar.gz" prefix="/usr/local" tmp_dir="$(mktemp -d)" trap 'rm -rf "$tmp_dir"' EXIT ( cd "$tmp_dir" wget "$url" sudo tar -C "/opt" -xvf "$(basename "$url")" for file in "/opt/renderdoc_$version/bin/"* do sudo ln -s "$file" "$prefix/bin/$(basename "$file")" done )