This commit is contained in:
Lukas Wurzinger 2024-09-15 21:11:17 +02:00
parent 0d066a8431
commit d22124b151

View file

@ -19,7 +19,7 @@
pkgs.opusTools pkgs.opusTools
]; ];
text = '' text = ''
src=$(realpath -- "$1") src=$1
dst=$src dst=$src
dst=''${dst%.flac}.opus dst=''${dst%.flac}.opus
dst=/srv/compmusic/''${dst#/srv/music/} dst=/srv/compmusic/''${dst#/srv/music/}
@ -37,7 +37,7 @@
clean = pkgs.writeShellApplication { clean = pkgs.writeShellApplication {
name = "clean"; name = "clean";
text = '' text = ''
del=$(realpath -- "$1") del=$1
chk=$del chk=$del
chk=''${chk%.opus}.flac chk=''${chk%.opus}.flac
chk=/srv/music/''${chk#/srv/compmusic/} chk=/srv/music/''${chk#/srv/compmusic/}