Portability: column -n is Debian-specific
This commit is contained in:
parent
14b7a54a93
commit
b7ddf65331
@ -15,8 +15,8 @@ printConfig() {
|
||||
for prune_expression in "${skippeddirectories[@]}"
|
||||
do
|
||||
(( printed )) \
|
||||
&& echo -n '||' \
|
||||
|| echo -n '|Skipped directories|'
|
||||
&& echo -n ' | |' \
|
||||
|| echo -n ' |Skipped directories|'
|
||||
echo "$prune_expression"
|
||||
printed=1
|
||||
done
|
||||
@ -31,10 +31,10 @@ printConfig() {
|
||||
EOF
|
||||
if [[ ${destinationformat["$destination"]} == opus ]]
|
||||
then
|
||||
echo "|Expected loss|${destinationloss["$destination"]}"
|
||||
echo " |Expected loss|${destinationloss["$destination"]}"
|
||||
elif [[ ${destinationformat["$destination"]} == mp3 ]]
|
||||
then
|
||||
echo "|Prevent resampling|${destinationnoresample["$destination"]}"
|
||||
echo " |Prevent resampling|${destinationnoresample["$destination"]}"
|
||||
fi
|
||||
cat <<-EOF
|
||||
|Normalize|${destinationnormalize["$destination"]}
|
||||
@ -47,11 +47,11 @@ printConfig() {
|
||||
|File Rename|${destinationrename["$destination"]}
|
||||
EOF
|
||||
[ -n "${destinationskipmime["$destination"]}" ] \
|
||||
&& echo "|Skipped mime-types|${destinationskipmime["$destination"]//\|/
|
||||
&& echo " |Skipped mime-types|${destinationskipmime["$destination"]//\|/
|
||||
||}"
|
||||
[ -n "${destinationmskipime["$destination"]}" ] \
|
||||
&& echo "|Copied mime-types|${destinationcopymime["$destination"]//\|/
|
||||
&& echo " |Copied mime-types|${destinationcopymime["$destination"]//\|/
|
||||
||}"
|
||||
done
|
||||
}|column -t -s'|' -n
|
||||
}|column -t -s'|'
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user