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" zbell_lastcmd_tmp="$zbell_lastcmd"
regexp-replace zbell_lastcmd_tmp '^sudo ' '' regexp-replace zbell_lastcmd_tmp '^sudo ' ''
if [[ $zbell_last_timestamp == $zbell_timestamp ]]; then [[ $zbell_last_timestamp == $zbell_timestamp ]] && return
return
fi
if [[ $zbell_lastcmd_tmp == "" ]]; then [[ $zbell_lastcmd_tmp == "" ]] && return
return;
fi
zbell_last_timestamp=$zbell_timestamp zbell_last_timestamp=$zbell_timestamp