From b47bb7feb9101318c418bc564341e44946da8083 Mon Sep 17 00:00:00 2001 From: AlexPresso <15526962+AlexPresso@users.noreply.github.com> Date: Wed, 11 May 2022 11:21:35 +0200 Subject: [PATCH] Fix #31 (#34) --- patcher.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/patcher.sh b/patcher.sh index 3458fba..de8d195 100755 --- a/patcher.sh +++ b/patcher.sh @@ -73,10 +73,12 @@ function patch() { if [[ -d $cp_bin_path ]]; then for filename in "${cp_to_patch[@]}"; do - info "Patching CodecPack's $filename" + if [[ -f "$cp_bin_path/$filename" ]]; then + info "Patching CodecPack's $filename" - mv -n "$cp_bin_path/$filename" "$cp_bin_path/$filename.orig" - ln -s -f "$vs_bin_path/ffmpeg" "$cp_bin_path/$filename" + mv -n "$cp_bin_path/$filename" "$cp_bin_path/$filename.orig" + ln -s -f "$vs_bin_path/ffmpeg" "$cp_bin_path/$filename" + fi done fi