From bdd0c909c1c2c983ef24ed194a59d10b418fd5bd Mon Sep 17 00:00:00 2001 From: Nathan Theule Date: Tue, 23 Apr 2024 16:44:46 -0400 Subject: [PATCH] added trap for sleep loop --- ash-multi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ash-multi b/ash-multi index 79f0d85..d21b2d0 100755 --- a/ash-multi +++ b/ash-multi @@ -461,6 +461,8 @@ map_extensions_and_files TOTAL_FILES=$(echo "$all_files" | wc -l) +trap "echo Stopping; exit 0" SIGTERM SIGINT + echo -e "ASH found ${TOTAL_FILES} file(s) in the source directory..." if [ $TOTAL_FILES -gt 1000 ]; then echo -e "${RED}Depending on your machine this might take a while...${NC}"