This was actually fairly harmless, the worst that could happen was a
warning from mkdir(1) on stdout. But annoying nonetheless. This patch
fixes that.
* zcdrip.in (_album_to_dir): Fix syntax bug that was causing
flac directory creation to be attempted even if flac encoding
wasn't requested.
Signed-off-by: Steve Youngs <steve@steveyoungs.com>
## Author: Steve Youngs <steve@steveyoungs.com>
## Maintainer: Steve Youngs <steve@steveyoungs.com>
## Created: <2006-08-08>
-## Time-stamp: <Sunday Jun 19, 2011 16:47:17 steve>
+## Time-stamp: <Wednesday Jun 22, 2011 13:00:06 steve>
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
dir=$(pwd)/${tart}/${talbum}
[[ -d ${dir} ]] || mkdir -p ${dir}
- [[ $keep_flac == yes ]] && fdir=${dir}/flac; mkdir -p ${fdir}
+
+ if [[ $keep_flac == yes ]]; then
+ fdir=${dir}/flac
+ mkdir -p ${fdir}
+ fi
}