|
@ -5680,17 +5680,22 @@ if [ "$action" == "status" ]; then |
|
|
|
|
|
|
|
|
state_columns_raw=() |
|
|
state_columns_raw=() |
|
|
for col in "${state_columns[@]}"; do |
|
|
for col in "${state_columns[@]}"; do |
|
|
if [[ "$col" == "-"* ]]; then |
|
|
|
|
|
col=${col#-} |
|
|
|
|
|
|
|
|
if [[ "$col" =~ ^[+-] ]]; then |
|
|
|
|
|
col=${col:1} |
|
|
fi |
|
|
fi |
|
|
state_columns_raw+=("${col//-/_}") |
|
|
state_columns_raw+=("${col//-/_}") |
|
|
done |
|
|
done |
|
|
state_columns_align="" |
|
|
state_columns_align="" |
|
|
for col in "${state_columns[@]}"; do |
|
|
for col in "${state_columns[@]}"; do |
|
|
if [[ "$col" == "-"* ]]; then |
|
|
if [[ "$col" == "-"* ]]; then |
|
|
|
|
|
state_columns_align+="-" |
|
|
|
|
|
elif [[ "$col" == "+"* ]]; then |
|
|
state_columns_align+="+" |
|
|
state_columns_align+="+" |
|
|
else |
|
|
else |
|
|
state_columns_align+="-" |
|
|
|
|
|
|
|
|
case "${col//_/-}" in |
|
|
|
|
|
version|upstream-version) state_columns_align+="+";; |
|
|
|
|
|
*) state_columns_align+="-";; |
|
|
|
|
|
esac |
|
|
fi |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|