aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-01-27 23:41:17 +0000
committerBill Nottingham <notting@redhat.com>2000-01-27 23:41:17 +0000
commit80feece0f3a1c55b06bfd7ba647dd1a398cbd86d (patch)
treeaa600fa35494aeec09c39c62fb1c8c4e63178de5
parent87c6b5f630adfcdecceb34665c928dc0879f8f2c (diff)
downloadinitscripts-80feece0f3a1c55b06bfd7ba647dd1a398cbd86d.tar
initscripts-80feece0f3a1c55b06bfd7ba647dd1a398cbd86d.tar.gz
initscripts-80feece0f3a1c55b06bfd7ba647dd1a398cbd86d.tar.bz2
initscripts-80feece0f3a1c55b06bfd7ba647dd1a398cbd86d.tar.xz
initscripts-80feece0f3a1c55b06bfd7ba647dd1a398cbd86d.zip
get rid of warning when /var/lock and /var/run are empty
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index d3226e4e..844af28d 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -443,7 +443,7 @@ _NEED_XFILES=
# Clean up /var
# I'd use find, but /usr may not be mounted.
for afile in /var/lock/* /var/run/*; do
- if [ -d $afile ]; then
+ if [ -d "$afile" ]; then
[ "$afile" != "news" ] && rm -f $afile/*
else
rm -f $afile