Shitting bricks
To be extremely frightened. Also to be in a state of great fear.
Heard in Westmeath, Louth, Dublin, Galway, Sligo and Waterford
Also spelt Shit the brick, Shittin a brick, Shit'n the brick
Jaysus I was shitting bricks. I thought my ma had caught me smoking." "I was shittin bricks near da end of the 1st Cork game.

How perfectly delightful to see you.
Here it is in posh English.
Good heavens I was in a state of absolute terror. I thought my mother had caught me smoking.
Updated