Skip to content

Commit 593e340

Browse files
author
Administrator
committed
条件错误修改
1 parent e1fb099 commit 593e340

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install_ffmpeg.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
function install_ffmpeg() {
66
echo "➡️ Installing FFmpeg..."
77
# Check if FFmpeg is already installed
8-
if ! cd ffmpegMaker 2>/dev/null; then
8+
ls -l ffmpegMaker 2>/dev/null
9+
if [[ ! -d "ffmpegMaker" || -z "$(ls -A ffmpegMaker)" ]]; then
910
git config --global core.autocrlf input
1011
git clone https://gh-proxy.com/github.com/linjonh/ffmpegMaker.git
1112
cd ffmpegMaker || exit

0 commit comments

Comments
 (0)