about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-12 14:35:26 +0100
committerSoispha <soispha@vhack.eu>2024-02-12 14:35:26 +0100
commit81ddabbac97d6c53f5d498a50875e3f1d5b7e957 (patch)
treeb241d73692359b4d407c87a3a975df004aee3559
parentfix(sys/nixpkgs/pkgs/comments): Estimate filesize can be > an u32 (diff)
downloadnixos-config-81ddabbac97d6c53f5d498a50875e3f1d5b7e957.tar.gz
nixos-config-81ddabbac97d6c53f5d498a50875e3f1d5b7e957.zip
fix(hm/pkgs/scrs/mpc-fav): Correctly orient the if condition
Diffstat (limited to '')
-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