From 7b9c8f777b9390fa915c365d785f07afd067f0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Deparis?= Date: Mon, 7 Jan 2019 12:20:57 +0100 Subject: [PATCH 1/3] fix: Remove english shell dependency in manage.sh script --- manage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage.sh b/manage.sh index a450c6dfd..6c609ec1e 100755 --- a/manage.sh +++ b/manage.sh @@ -270,6 +270,6 @@ Commands " } -[ "$(command -V "$ACTION" | grep ' function$')" = "" ] \ +[ "$(sed -rn 's/^([^ ]+)\(\) \{$/\1/p' manage.sh | grep "$ACTION")" = "" ] \ && help "action not found" \ || "$ACTION" "$2" From 5f1cba53378685d9a618e132afcef889a0682ef7 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 29 Apr 2020 14:33:47 +0200 Subject: [PATCH 2/3] Revert "fix: Remove english shell dependency in manage.sh script" This reverts commit 7b9c8f777b9390fa915c365d785f07afd067f0e2. --- manage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage.sh b/manage.sh index 6c609ec1e..a450c6dfd 100755 --- a/manage.sh +++ b/manage.sh @@ -270,6 +270,6 @@ Commands " } -[ "$(sed -rn 's/^([^ ]+)\(\) \{$/\1/p' manage.sh | grep "$ACTION")" = "" ] \ +[ "$(command -V "$ACTION" | grep ' function$')" = "" ] \ && help "action not found" \ || "$ACTION" "$2" From ceceee546b5273d9a1ebce6638ab98c7c34ed58f Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 29 Apr 2020 14:36:47 +0200 Subject: [PATCH 3/3] [fix] Remove english shell dependency in manage.sh script see https://github.com/asciimoo/searx/pull/1479#issuecomment-569904632 Signed-off-by: Markus Heiser --- manage.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manage.sh b/manage.sh index a450c6dfd..db167caba 100755 --- a/manage.sh +++ b/manage.sh @@ -1,5 +1,7 @@ #!/bin/sh +export LANG=C + BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")" cd -- "$BASE_DIR"