diff options
author | Soispha <soispha@vhack.eu> | 2024-02-12 14:35:26 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-02-12 14:35:26 +0100 |
commit | 81ddabbac97d6c53f5d498a50875e3f1d5b7e957 (patch) | |
tree | b241d73692359b4d407c87a3a975df004aee3559 /hm/soispha/pkgs/scripts | |
parent | fix(sys/nixpkgs/pkgs/comments): Estimate filesize can be > an u32 (diff) | |
download | nixos-config-81ddabbac97d6c53f5d498a50875e3f1d5b7e957.tar.gz nixos-config-81ddabbac97d6c53f5d498a50875e3f1d5b7e957.zip |
fix(hm/pkgs/scrs/mpc-fav): Correctly orient the if condition
Diffstat (limited to 'hm/soispha/pkgs/scripts')
-rwxr-xr-x | hm/soispha/pkgs/scripts/wrappers/mpc-fav | 6 |
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 |