Do not replace existing rpc.conf
This commit is contained in:
parent
d83116efc3
commit
9bebd5b648
1 changed files with 5 additions and 3 deletions
|
@ -13,9 +13,11 @@ echo -n "Copying script..."
|
||||||
cp ./bin/libmpv_rpc.so "$scripts_dir"
|
cp ./bin/libmpv_rpc.so "$scripts_dir"
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
|
||||||
echo -n "Copying default config..."
|
if [ ! -f "$mpv_home/rpc.json" ]; then
|
||||||
cp ./config/rpc.json "$mpv_home"
|
echo -n "Copying default config..."
|
||||||
echo "Done!"
|
cp ./config/rpc.json "$mpv_home"
|
||||||
|
echo "Done!"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! grep -q "$script_binding" "$mpv_home/input.conf"; then
|
if ! grep -q "$script_binding" "$mpv_home/input.conf"; then
|
||||||
echo -n "Adding keybinding entry to input.conf..."
|
echo -n "Adding keybinding entry to input.conf..."
|
||||||
|
|
Loading…
Reference in a new issue