@ -1,6 +1,10 @@
#!/bin/bash
set -e
#
# this script compresses everything in $source and saves it in $destination
source="$HOME/kskcloud/Musik/"
tmp="$HOME/Musik.tiny/"
destination="$HOME/kskcloud/Musik.tiny/"
@ -31,4 +35,4 @@ find "$tmp" -type f -not -name '*.opus' -delete
# copy compressed files to target destination
cp -a --reflink=always "$tmp/"* "$destination"
rm -r "$tmp"