Removed redundant backup in installcert when RealCACertPath == RealCertPath

This commit is contained in:
BlueAnanas committed 2016-04-04 22:50:04 +02:00
1 parent d62ee94019
commit 78552b183b
1 file changed
+3 -3
+3 -3
View File
@@ -1349,13 +1349,13 @@ installcert() {
fi
if [ "$Le_RealCACertPath" ] ; then
if [ -f "$Le_RealCACertPath" ] ; then
cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak
fi
if [ "$Le_RealCACertPath" == "$Le_RealCertPath" ] ; then
echo "" >> "$Le_RealCACertPath"
cat "$CA_CERT_PATH" >> "$Le_RealCACertPath"
else
if [ -f "$Le_RealCACertPath" ] ; then
cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak
fi
cat "$CA_CERT_PATH" > "$Le_RealCACertPath"
fi
fi
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.