aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib_apps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib_apps.sh')
-rw-r--r--scripts/lib_apps.sh2
1 files changed, 1 insertions, 1 deletions
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage