HomeClusterLabs Projects

Low: Fix protential error for RA:nagios

Description

Low: Fix protential error for RA:nagios

VAR="/etc/path with spcaes"

[ ! -f ${VAR} ]
equals to [ ! -f /etc/path with spaces ] ### syntax error

rm -f ${VAR}
equals to rm -f /etc/path with spaces ### accidentally remove files/folders

-eq and -ne with number (not string)

Signed-off-by: guessi <guessi@gmail.com>

Details

Provenance
guessi <guessi@gmail.com>Authored on Apr 28 2016, 10:21 AM
Parents
rR18a78f523b8a: Merge pull request #791 from krig/symlink-missing
Branches
Unknown
Tags
Unknown

Event Timeline