fix: There is a syntax error in the conditional expression: the unexpected symbol `;'

This commit is contained in:
junjie.miao
2025-05-21 14:18:57 +08:00
parent 68dd4a6c49
commit a5a92f9d77

View File

@ -114,9 +114,9 @@ repackage(){
echo "Pip download failed." echo "Pip download failed."
exit 1 exit 1
fi fi
if [[ "linux" == "$OS_TYPE"]]; then if [[ "linux" == "$OS_TYPE" ]]; then
sed -i '1i\--no-index --find-links=./wheels/' requirements.txt sed -i '1i\--no-index --find-links=./wheels/' requirements.txt
elif [[ "darwin" == "$OS_TYPE"]]; then elif [[ "darwin" == "$OS_TYPE" ]]; then
sed -i ".bak" '1i\ sed -i ".bak" '1i\
--no-index --find-links=./wheels/ --no-index --find-links=./wheels/
' requirements.txt ' requirements.txt
@ -124,9 +124,9 @@ repackage(){
fi fi
if [ -f .difyignore ]; then if [ -f .difyignore ]; then
if [[ "linux" == "$OS_TYPE"]]; then if [[ "linux" == "$OS_TYPE" ]]; then
sed -i '/^wheels\//d' .difyignore sed -i '/^wheels\//d' .difyignore
elif [[ "darwin" == "$OS_TYPE"]]; then elif [[ "darwin" == "$OS_TYPE" ]]; then
sed -i ".bak" '/^wheels\//d' .difyignore sed -i ".bak" '/^wheels\//d' .difyignore
rm -f .difyignore.bak rm -f .difyignore.bak
fi fi