Normalize conditional expressions

This commit is contained in:
bullno1 2014-08-17 23:20:31 +08:00
parent 0372a97a64
commit 4466d08174

View File

@ -50,13 +50,9 @@ zbell_end() {
zbell_lastcmd_tmp="$zbell_lastcmd"
regexp-replace zbell_lastcmd_tmp '^sudo ' ''
if [[ $zbell_last_timestamp == $zbell_timestamp ]]; then
return
fi
[[ $zbell_last_timestamp == $zbell_timestamp ]] && return
if [[ $zbell_lastcmd_tmp == "" ]]; then
return;
fi
[[ $zbell_lastcmd_tmp == "" ]] && return
zbell_last_timestamp=$zbell_timestamp