This commit is contained in:
hhftechnologies 2024-11-25 16:22:43 +05:30
parent 0d859442b6
commit c9ea1ddc39

View file

@ -39,8 +39,11 @@ download_formatter() {
chmod +x task_formatter.sh
# Source the formatter with error checking
if ! source ./task_formatter.sh; then
echo "Error: Failed to source task_formatter.sh"
source ./task_formatter.sh || { echo "Error: Failed to source task_formatter.sh"; exit 1; }
# Check if print_header is available after sourcing
if ! declare -f print_header > /dev/null; then
echo "Error: print_header function not found after sourcing."
exit 1
fi
}