fix trap issue in dtop install

This commit is contained in:
buildplan
2025-11-06 21:52:46 +00:00
parent ff6bcc97ec
commit 3c7b1dcd4f

View File

@@ -3859,7 +3859,8 @@ install_dtop_optional() {
return 0 return 0
fi fi
chmod +x "$DTOP_INSTALLER" chmod +x "$DTOP_INSTALLER"
trap 'rm -f "$DTOP_INSTALLER"' RETURN # shellcheck disable=SC2064
trap "rm -f '$DTOP_INSTALLER'" RETURN
local USER_HOME local USER_HOME
USER_HOME=$(getent passwd "$USERNAME" | cut -d: -f6) USER_HOME=$(getent passwd "$USERNAME" | cut -d: -f6)
local USER_LOCAL_BIN="$USER_HOME/.local/bin" local USER_LOCAL_BIN="$USER_HOME/.local/bin"