about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xhm/soispha/pkgs/scripts/wrappers/mpc-fav6
1 files changed, 4 insertions, 2 deletions
diff --git a/hm/soispha/pkgs/scripts/wrappers/mpc-fav b/hm/soispha/pkgs/scripts/wrappers/mpc-fav
index 59121c86..f9107ff6 100755
--- a/hm/soispha/pkgs/scripts/wrappers/mpc-fav
+++ b/hm/soispha/pkgs/scripts/wrappers/mpc-fav
@@ -6,8 +6,10 @@ SHELL_LIBRARY_VERSION="2.0.13" . %SHELL_LIBRARY_PATH
 FAV_DIR="$XDG_MUSIC_DIR/playlists/favourites";
 
 cd "$XDG_MUSIC_DIR" || die "No music dir!";
-[ -d "$FAV_DIR" ] && mkdir --parents "$FAV_DIR";
-ln -sr "$(mpc --format '%file%' current)" "$FAV_DIR" || die "Link failed!";
+
+[ -d "$FAV_DIR" ] || mkdir --parents "$FAV_DIR";
+
+ln -sr "$(mpc --format '%file%' current)" "$FAV_DIR/" || die "Link failed!";
 
 
 # vim: ft=sh