From cf6ae78cd4722308130c3e5ed3ef1c2b0022ba06 Mon Sep 17 00:00:00 2001 From: Roz K Date: Sat, 6 Sep 2025 03:32:42 +0200 Subject: [PATCH] fix installation script --- install_gopro_8:7.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/install_gopro_8:7.sh b/install_gopro_8:7.sh index fe5d589..19ac1f0 100755 --- a/install_gopro_8:7.sh +++ b/install_gopro_8:7.sh @@ -1,6 +1,18 @@ #!/bin/sh # RozK -rm -f ~/.avidemux6/custom/preset_gopro_8:7* -cp gopro_8:7/preset_gopro_8:7* ~/.avidemux6/custom/ + +if [ -d ~/.local/share/avidemux6 ]; then + mkdir -p ~/.local/share/avidemux6/custom + rm -f ~/.local/share/avidemux6/custom/preset_gopro* + cp gopro_8:7/preset_gopro* ~/.local/share/avidemux6/custom/ +fi + +if [ -d ~/.avidemux6 ]; then + mkdir -p ~/.avidemux6/custom + rm -f ~/.avidemux6/custom/preset_gopro* + cp gopro_8:7/preset_gopro* ~/.avidemux6/custom/ +fi + sudo mkdir -p /opt/rk/avidemux +sudo rm -f /opt/rk/avidemux/* sudo cp gopro_8:7/unfish_gopro_8:7.glsl /opt/rk/avidemux