Update Bash: logic operation