Normalize conditional expressions
This commit is contained in:
parent
0372a97a64
commit
4466d08174
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user