@attraccess/plugin-wago 0.1.0-nightly.1106.2 → 0.1.0-nightly.1112.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8315,7 +8315,11 @@ received=0
8315
8315
  while test "$received" -lt "$limit"; do
8316
8316
  chunk=$((limit - received))
8317
8317
  if test "$chunk" -gt 65536; then chunk=65536; fi
8318
- dd bs="$chunk" count=1 >> "$file" 2>/dev/null || exit 1
8318
+ # dd writes into a pipe, never into the file: some dd builds (uutils on newer
8319
+ # Ubuntu) truncate a regular-file stdout, which would undo an append redirect.
8320
+ # dd's own status comes back on fd 3 because there is no pipefail.
8321
+ dd_status=$( { { dd bs="$chunk" count=1 2>/dev/null; echo "$?" >&3; } | cat >> "$file"; } 3>&1 ) || exit 1
8322
+ test "$dd_status" = 0 || exit 1
8319
8323
  # The outer filesystem guard already positively identified this stat ABI.
8320
8324
  # One metadata process per input block avoids the guarded capture pipeline
8321
8325
  # (and its byte-at-a-time dd) on every short SSH pipe read. This is our own
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attraccess/plugin-wago",
3
- "version": "0.1.0-nightly.1106.2",
3
+ "version": "0.1.0-nightly.1112.1",
4
4
  "description": "Attraccess integration for WAGO CC100 controllers. Operational control only: not a safety function, and not yet qualified for physical use.",
5
5
  "keywords": [
6
6
  "attraccess-plugin",