update
This commit is contained in:
parent
0d859442b6
commit
c9ea1ddc39
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue