categoryedit - sort file alphabetically

pull/239/head
Botspot 4 years ago
parent 374bd7c9ac
commit 46f5492733

@ -83,8 +83,8 @@ $category
fi
refresh
done
#remove first and last characters from each line ---- and '(null)' messaged from yad
output="$(echo "$output" | sed 's/.$//; s/^.//' | sed "s+(null)++g")"
#remove first and last characters from each line ---- and '(null)' messaged from yad --- and sort it alphabetically
output="$(echo "$output" | sed 's/.$//; s/^.//' | sed "s+(null)++g" | sort)"
echo "$output" > "${DIRECTORY}/data/categories/structure"

Loading…
Cancel
Save