We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a36dbb commit fdb6109Copy full SHA for fdb6109
1 file changed
package/run.sh
@@ -14,12 +14,14 @@ if [ -f "${RESTART_STAMP_FILE}" ]; then
14
PRIOR_RESTART_STAMP=$(cat "${RESTART_STAMP_FILE}");
15
fi
16
17
-if [ "${PRIOR_RESTART_STAMP}" != "${RESTART_STAMP}" ]; then
+if [ -n "${RESTART_STAMP}" ] && [ "${PRIOR_RESTART_STAMP}" != "${RESTART_STAMP}" ]; then
18
FORCE_RESTART=true
19
else
20
FORCE_RESTART=false
21
22
23
env "INSTALL_K3S_FORCE_RESTART=${FORCE_RESTART}" "INSTALL_K3S_SKIP_DOWNLOAD=true" "INSTALL_K3S_SKIP_SELINUX_RPM=true" "INSTALL_K3S_SELINUX_WARN=true" installer.sh $@
24
25
-echo "${RESTART_STAMP}" > "${RESTART_STAMP_FILE}"
+if [ -n "${RESTART_STAMP}" ]; then
26
+ echo "${RESTART_STAMP}" > "${RESTART_STAMP_FILE}"
27
+fi
0 commit comments