Bit of shell script sent to the terminal during updates

Hi,
I have noticed that when you update packages and timeshift is triggered to create a snapshot a bit of a shell script is sent out to the terminal:

if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then
echo ""
else
submenu 'Manjaro Linux snapshots' {
    configfile "${prefix}/grub-btrfs.cfg"
}
fi

This seems innocuous, but somehow wrong: this is not a message to be shown but probably some code that should be run. Any clue?

This is not commands to be run - it is part of grub-btrfs configuration which injects information about snapshots into grub configuration.