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.
1 parent 0761563 commit f59c4feCopy full SHA for f59c4fe
pkg/cidata/cidata.TEMPLATE.d/boot.sh
@@ -12,7 +12,9 @@ WARNING() {
12
# shellcheck disable=SC2163
13
while read -r line; do export "$line"; done <"${LIMA_CIDATA_MNT}"/lima.env
14
15
-sed -i '/#LIMA-START/,/#LIMA-END/d' /etc/environment
+if [ -e /etc/environment ]; then
16
+ sed -i '/#LIMA-START/,/#LIMA-END/d' /etc/environment
17
+fi
18
cat "${LIMA_CIDATA_MNT}/etc_environment" >>/etc/environment
19
20
0 commit comments