We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bdc8376 + a503ccd commit 188dcb5Copy full SHA for 188dcb5
pkg/cidata/cidata.TEMPLATE.d/boot/07-etc-environment.sh
@@ -4,7 +4,7 @@ set -eux
4
# /etc/environment must be written after 04-persistent-data-volume.sh has run to
5
# make sure the changes on a restart are applied to the persisted version.
6
7
-orig=$(test -f /etc/environment && cat /etc/environment)
+orig=$(test ! -f /etc/environment || cat /etc/environment)
8
if [ -e /etc/environment ]; then
9
sed -i '/#LIMA-START/,/#LIMA-END/d' /etc/environment
10
fi
0 commit comments