summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/Z99-cloudinit-warnings.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Z99-cloudinit-warnings.sh b/tools/Z99-cloudinit-warnings.sh
index b237786b..1d413374 100644
--- a/tools/Z99-cloudinit-warnings.sh
+++ b/tools/Z99-cloudinit-warnings.sh
@@ -4,12 +4,12 @@
# Purpose: show user warnings on login.
cloud_init_warnings() {
- local skipf="" warning="" idir="/var/lib/cloud/instance" n=0
+ local warning="" idir="/var/lib/cloud/instance" n=0
local warndir="$idir/warnings"
local ufile="$HOME/.cloud-warnings.skip" sfile="$warndir/.skip"
[ -d "$warndir" ] || return 0
[ ! -f "$ufile" ] || return 0
- [ ! -f "$skipf" ] || return 0
+ [ ! -f "$sfile" ] || return 0
for warning in "$warndir"/*; do
[ -f "$warning" ] || continue