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
|
chmod +x task_formatter.sh
|
||||||
|
|
||||||
# Source the formatter with error checking
|
# Source the formatter with error checking
|
||||||
if ! source ./task_formatter.sh; then
|
source ./task_formatter.sh || { echo "Error: Failed to source task_formatter.sh"; exit 1; }
|
||||||
echo "Error: Failed to source task_formatter.sh"
|
|
||||||
|
# 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
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue