From a5a92f9d7719b2ac72b705490be6869c3fe4aebc Mon Sep 17 00:00:00 2001 From: "junjie.miao" Date: Wed, 21 May 2025 14:18:57 +0800 Subject: [PATCH] fix: There is a syntax error in the conditional expression: the unexpected symbol `;' --- plugin_repackaging.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin_repackaging.sh b/plugin_repackaging.sh index a5d94c7..58e229d 100644 --- a/plugin_repackaging.sh +++ b/plugin_repackaging.sh @@ -114,9 +114,9 @@ repackage(){ echo "Pip download failed." exit 1 fi - if [[ "linux" == "$OS_TYPE"]]; then + if [[ "linux" == "$OS_TYPE" ]]; then sed -i '1i\--no-index --find-links=./wheels/' requirements.txt - elif [[ "darwin" == "$OS_TYPE"]]; then + elif [[ "darwin" == "$OS_TYPE" ]]; then sed -i ".bak" '1i\ --no-index --find-links=./wheels/ ' requirements.txt @@ -124,9 +124,9 @@ repackage(){ fi if [ -f .difyignore ]; then - if [[ "linux" == "$OS_TYPE"]]; then + if [[ "linux" == "$OS_TYPE" ]]; then sed -i '/^wheels\//d' .difyignore - elif [[ "darwin" == "$OS_TYPE"]]; then + elif [[ "darwin" == "$OS_TYPE" ]]; then sed -i ".bak" '/^wheels\//d' .difyignore rm -f .difyignore.bak fi