mirror of
https://github.com/junjiem/dify-plugin-repackaging.git
synced 2025-12-08 16:22:28 +08:00
fix: There is a syntax error in the conditional expression: the unexpected symbol `;'
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user