Portability: column -n is Debian-specific

This commit is contained in:
Vincent Riquer 2015-03-12 20:15:25 +01:00
parent 14b7a54a93
commit b7ddf65331

View File

@ -15,8 +15,8 @@ printConfig() {
for prune_expression in "${skippeddirectories[@]}" for prune_expression in "${skippeddirectories[@]}"
do do
(( printed )) \ (( printed )) \
&& echo -n '||' \ && echo -n ' | |' \
|| echo -n '|Skipped directories|' || echo -n ' |Skipped directories|'
echo "$prune_expression" echo "$prune_expression"
printed=1 printed=1
done done
@ -31,10 +31,10 @@ printConfig() {
EOF EOF
if [[ ${destinationformat["$destination"]} == opus ]] if [[ ${destinationformat["$destination"]} == opus ]]
then then
echo "|Expected loss|${destinationloss["$destination"]}" echo " |Expected loss|${destinationloss["$destination"]}"
elif [[ ${destinationformat["$destination"]} == mp3 ]] elif [[ ${destinationformat["$destination"]} == mp3 ]]
then then
echo "|Prevent resampling|${destinationnoresample["$destination"]}" echo " |Prevent resampling|${destinationnoresample["$destination"]}"
fi fi
cat <<-EOF cat <<-EOF
|Normalize|${destinationnormalize["$destination"]} |Normalize|${destinationnormalize["$destination"]}
@ -47,11 +47,11 @@ printConfig() {
|File Rename|${destinationrename["$destination"]} |File Rename|${destinationrename["$destination"]}
EOF EOF
[ -n "${destinationskipmime["$destination"]}" ] \ [ -n "${destinationskipmime["$destination"]}" ] \
&& echo "|Skipped mime-types|${destinationskipmime["$destination"]//\|/ && echo " |Skipped mime-types|${destinationskipmime["$destination"]//\|/
||}" ||}"
[ -n "${destinationmskipime["$destination"]}" ] \ [ -n "${destinationmskipime["$destination"]}" ] \
&& echo "|Copied mime-types|${destinationcopymime["$destination"]//\|/ && echo " |Copied mime-types|${destinationcopymime["$destination"]//\|/
||}" ||}"
done done
}|column -t -s'|' -n }|column -t -s'|'
} }