how to delay a blinking led without disabling it using gpio pins on beaglebone black?

Hi Sir, Ma’am,
I am using a blinking led and a push button to generate the hardware interrupt.
But,when i run the code ,my led hardware gets disabled which is not ideal for my case.

Here are the two files containing the code for blinking and handling interrupts.
blink.sh
interrupt.sh

Thanks in advance.

Here are the updated versions:
blink.sh
interrupt.sh