This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to handle Ctrl+C | |
handle_interrupt() { | |
echo -e "\n\033[1;31mERROR:\033[1m Script interrupted by user (Ctrl+C)\033[0m" | |
exit 1 | |
} | |
# Set up the trap to catch SIGINT (Ctrl+C) | |
trap handle_interrupt SIGINT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
error_handler() { | |
echo -e "\n\033[1;31mError on line $1\033[0m" | |
# Perform any cleanup or logging here | |
} | |
handle_interrupt() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
SAMPLESHEET="samplesheet.csv" | |
OUTPUT_DIR="results" | |
ZIP_PACKAGE_DIR="$(date -I)-nf-flu-results" | |
VERBOSE=false | |
OVERWRITE=false |
OlderNewer