diff --git a/README.md b/README.md index d329cede..c1f4d64e 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,11 @@ Most notable features: On Linux and macOS these terminal commands can be used to install or update uosc (if wget and unzip are installed): ```sh - mkdir -pv ~/.config/mpv/script-opts/ - rm -rf ~/.config/mpv/scripts/uosc_shared + config_dir="${XDG_CONFIG_HOME:-~/.config}" + mkdir -pv "$config_dir"/mpv/script-opts/ + rm -rf "$config_dir"/mpv/scripts/uosc_shared wget -P /tmp/ https://github.com/tomasklaen/uosc/releases/latest/download/uosc.zip - unzip -od ~/.config/mpv/ /tmp/uosc.zip + unzip -od "$config_dir"/mpv/ /tmp/uosc.zip rm -fv /tmp/uosc.zip ```