From 14e1bf1719c038ac9711723c94634b63e8fbff08 Mon Sep 17 00:00:00 2001 From: frost99 Date: Wed, 28 Jan 2026 04:49:19 +0100 Subject: [PATCH] Syntax error correction --- functions/README.txt | 3 +++ functions/menu.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 functions/README.txt diff --git a/functions/README.txt b/functions/README.txt new file mode 100644 index 0000000..cb073f8 --- /dev/null +++ b/functions/README.txt @@ -0,0 +1,3 @@ +fixed syntax error in menu.sh, on line 47. + +the error was print_clour instead of print_colour diff --git a/functions/menu.sh b/functions/menu.sh index 232a48e..8e0648e 100755 --- a/functions/menu.sh +++ b/functions/menu.sh @@ -43,7 +43,7 @@ show_disk_usage() { df -h | tail -n +2 | while read line; do use_percent=$(echo $line | awk '{print $5}' | sed 's/%//') if [[ $use_percent -gt 80 ]]; then - print_clour $RED "Warning: $(echo $line | awk 'print $1') is ${use_percent}% full" + print_colour $RED "Warning: $(echo $line | awk 'print $1') is ${use_percent}% full" fi done