Añadidos dobles corchetes
This commit is contained in:
parent
9bf95fb086
commit
14731db9a9
|
@ -4,9 +4,9 @@ TMP=/var/run/openvpn.pid
|
|||
|
||||
ps="$(ps aux|grep openvpn | grep 'openvpn --config' | grep -v grep | cut -d' ' -f1)"
|
||||
|
||||
if [ -z $ps ];
|
||||
if [[ -z $ps ]];
|
||||
then
|
||||
if [ -e $TMP ];
|
||||
if {[ -e $TMP ]];
|
||||
then
|
||||
rm $TMP
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue