From b2a7909f4c2f2b47386e24519afc62fa49bfa0c8 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Fri, 30 Jan 2026 08:35:39 -0500 Subject: Fixed waybar-weather error overwriting installed version On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: scripts/lib_apps.sh --- scripts/lib_apps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/lib_apps.sh') diff --git a/scripts/lib_apps.sh b/scripts/lib_apps.sh index f71ef05a..f19fd75a 100644 --- a/scripts/lib_apps.sh +++ b/scripts/lib_apps.sh @@ -180,7 +180,7 @@ install_waybar_weather_binary() { fi _log "Installing prebuilt binary to ${INSTALL_PATH} from ${ASSET}" - if ${SUDO} sh -c "gzip -dc '$ASSET' > '${INSTALL_PATH}'" && ${SUDO} chmod 0755 "${INSTALL_PATH}"; then + if ${SUDO} sh -c "tmp=\$(mktemp '${INSTALL_PATH}.XXXXXX') && gzip -dc '$ASSET' > \"\$tmp\" && chmod 0755 \"\$tmp\" && mv -f \"\$tmp\" '${INSTALL_PATH}'"; then if "${INSTALL_PATH}" -h >/dev/null 2>&1; then _log "Installed ${APP_NAME} successfully." else -- cgit v1.2.3