@dif.sh/cli 0.4.3 → 0.5.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.
- package/bin/dif.js +9 -1
- package/install.js +0 -0
- package/package.json +1 -1
package/bin/dif.js
CHANGED
|
@@ -32,4 +32,12 @@ if (result.error) {
|
|
|
32
32
|
process.exit(1);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
if (result.signal) {
|
|
36
|
+
// The binary was killed by a signal. Re-raise it so our own exit status
|
|
37
|
+
// reflects that (128+n convention) instead of reporting success — CI
|
|
38
|
+
// scripts checking `$?` must not treat an interrupted build as passing.
|
|
39
|
+
process.kill(process.pid, result.signal);
|
|
40
|
+
// If the signal was caught/ignored (e.g. exotic handlers), still fail.
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
process.exit(result.status ?? 1);
|
package/install.js
CHANGED
|
Binary file
|