From 9bebd5b64899f169dd5dda11d2b3cb909e54b110 Mon Sep 17 00:00:00 2001 From: Ryze Date: Fri, 24 Feb 2023 17:55:04 +0300 Subject: [PATCH] Do not replace existing rpc.conf --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index b8df2c2..982129b 100755 --- a/install.sh +++ b/install.sh @@ -13,9 +13,11 @@ echo -n "Copying script..." cp ./bin/libmpv_rpc.so "$scripts_dir" echo "Done!" -echo -n "Copying default config..." -cp ./config/rpc.json "$mpv_home" -echo "Done!" +if [ ! -f "$mpv_home/rpc.json" ]; then + echo -n "Copying default config..." + cp ./config/rpc.json "$mpv_home" + echo "Done!" +fi if ! grep -q "$script_binding" "$mpv_home/input.conf"; then echo -n "Adding keybinding entry to input.conf..."