Skip to content

Commit

Permalink
Merge pull request #71 from awsntheule/bugfix/issue-53
Browse files Browse the repository at this point in the history
Fix CTRL-C cancelling
  • Loading branch information
scrthq authored Apr 24, 2024
2 parents 22fdd82 + 67174bf commit 80d4c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ash-multi
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 80d4c49

Please sign in to comment.