diff --git a/tools/os_installers/apt.sh b/tools/os_installers/apt.sh index 156016b..1f16578 100644 --- a/tools/os_installers/apt.sh +++ b/tools/os_installers/apt.sh @@ -231,9 +231,11 @@ fi echo "Installing yq..." if ! command -v yq &> /dev/null; then YQ_VERSION="v4.44.6" - wget "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" -O /tmp/yq - sudo mv /tmp/yq /usr/local/bin/yq + YQ_TMPDIR=$(mktemp -d) + wget "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" -O "$YQ_TMPDIR/yq" + sudo mv "$YQ_TMPDIR/yq" /usr/local/bin/yq sudo chmod +x /usr/local/bin/yq + rm -rf "$YQ_TMPDIR" fi # Install lsd (LSDeluxe)