1
0
mirror of https://github.com/fumiama/RVC-Models-Downloader.git synced 2024-11-17 13:47:11 +09:00

fix(shell): bash error

This commit is contained in:
源文雨 2024-04-18 01:59:11 +09:00
parent 04d3d611b0
commit b59756173d

View File

@ -1,7 +1,10 @@
#!/bin/sh
# Should be run by go generate. DO NOT run it directly.
files=($(find $@ | grep -v .DS_Store | sort))
files=()
while IFS= read -r line; do
files+=("$line")
done <<< "$(find "$@" | grep -v .DS_Store | sort)"
rm -rf cfg.zip
zip -9 cfg.zip "${files[@]}"