From 9732081f343f5e97c9754145a9bed8beba507f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 27 Feb 2024 15:01:45 +0100 Subject: [PATCH] fix "Syntax failure" on function --- functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.sh b/functions.sh index f1705d5..44b96e4 100755 --- a/functions.sh +++ b/functions.sh @@ -1410,9 +1410,9 @@ EOF } -goarchive () { +function goarchive() { shopt -s extglob - if [ ${#:-0} -gt 0 ] + if [ "{#:-0}" -gt 0 ] then case "$1" in -h)