summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shuler <michael@pbandjelly.org>2014-02-23 23:35:16 -0600
committerMichael Shuler <michael@pbandjelly.org>2014-02-23 23:35:16 -0600
commitc0f296834f0dd6ab2132a3996386232a57b63ec4 (patch)
treeeeb036ecf28ebd7c073594a5c851ae5a0c7f98f1
parenta2c5bfc360164577c4bbf852e85dcb750c1a7c24 (diff)
downloadca-certificates-c0f296834f0dd6ab2132a3996386232a57b63ec4.tar.gz
Use sed -e >> into certbundle, instead of modifying cert file
-rwxr-xr-xsbin/update-ca-certificates3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates
index aa16771..021a3c7 100755
--- a/sbin/update-ca-certificates
+++ b/sbin/update-ca-certificates
@@ -70,8 +70,7 @@ add() {
echo +$PEM >> "$ADDED"
fi
# Add trailing newline to certificate, if it is missing (#635570)
- sed -i '$a\' "$CERT"
- cat "$CERT" >> "$TEMPBUNDLE"
+ sed -e '$a\' "$CERT" >> "$TEMPBUNDLE"
}
remove() {