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