From 7ce365d6f94fe1b8e9889c956b74e1100581af29 Mon Sep 17 00:00:00 2001 From: boredpasta Date: Mon, 17 Jul 2023 16:41:41 +0300 Subject: mpc-notify: disable SC1091 false-positive when user-dirs.dirs doesn't exist --- mpc-notify | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mpc-notify') diff --git a/mpc-notify b/mpc-notify index 9c74329..21d94c6 100755 --- a/mpc-notify +++ b/mpc-notify @@ -28,6 +28,9 @@ preview_height=64 default_song_icon="media-playback-start" # find xdg music directory + +# user-dirs.dirs is not guaranteed to exist +# shellcheck disable=SC1091 . "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" 2>/dev/null || true xdg_music_dir="${XDG_MUSIC_DIR:-$HOME/Music}" -- cgit v1.2.3