Skip to main content
the set -e part should belong to the question
Source Link
carpenter
  • 1.2k
  • 2
  • 8
  • 9

I am currently exploring Debian packages, and I have been reading some code samples. And on every line in, for example, the postinst script is a pattern.

some command || true
another command || true

So if some command fails, then the line returns true but I don't see how this affects the output of the program. Usually in these scripts there is a set -e at the beginning.

I am currently exploring Debian packages, and I have been reading some code samples. And on every line in, for example, the postinst script is a pattern.

some command || true
another command || true

So if some command fails, then the line returns true but I don't see how this affects the output of the program. Usually in these scripts there is a set -e at the beginning.

I am currently exploring Debian packages, and I have been reading some code samples. And on every line in, for example, the postinst script is a pattern.

some command || true
another command || true

So if some command fails, then the line returns true but I don't see how this affects the output of the program.

Tweeted twitter.com/StackUnix/status/801826880408133632

I am currently exploring debianDebian packages, and I have been reading some code samples. And on every line in, for example postinst, the postinst script is a pattern.

some command || true
another command || true

So if some command fails, then the line returns true but I don't see how this affects the output of the program. Usually in these scripts there is a set -eset -e at the beginning.

I am currently exploring debian packages, and I have been reading some code samples. And on every line in for example postinst script is a pattern.

some command || true
another command || true

So if some command fails, then the line returns true but I don't see how this affects the output of the program. Usually in these scripts there is a set -e at the beginning.

I am currently exploring Debian packages, and I have been reading some code samples. And on every line in, for example, the postinst script is a pattern.

some command || true
another command || true

So if some command fails, then the line returns true but I don't see how this affects the output of the program. Usually in these scripts there is a set -e at the beginning.

provide more context due to discussion
Source Link
carpenter
  • 1.2k
  • 2
  • 8
  • 9

I am currently exploring debian packages, and I have been reading some code samples. And on every line in for example postinst script is a pattern.

some command || true
another command || true

So if some command fails, then the line returns true but I don't see how this affects the output of the program. Usually in these scripts there is a set -e at the beginning.

I am currently exploring debian packages, and I have been reading some code samples. And on every line in for example postinst script is a pattern.

some command || true
another command || true

So if some command fails, then the line returns true but I don't see how this affects the output of the program.

I am currently exploring debian packages, and I have been reading some code samples. And on every line in for example postinst script is a pattern.

some command || true
another command || true

So if some command fails, then the line returns true but I don't see how this affects the output of the program. Usually in these scripts there is a set -e at the beginning.

Source Link
carpenter
  • 1.2k
  • 2
  • 8
  • 9
Loading