... at the end of script just write this down to complete the script... ------- else echo "Terminating the process of creating partitions" fi ------- I forgot to include those three lines, while I was translating the script from Croatian to English.