Beautify bash code
This commit is contained in:
parent
fc4dfbdf78
commit
0d8b325274
@ -359,23 +359,23 @@ EOF
|
||||
|
||||
# first uniq sort all cfg based on version
|
||||
for cfg_file in `find ${OPSI_REPOS_PRODUCT_DIR} -name "${PN}-*.cfg" -print ` ; do
|
||||
. ${cfg_file}
|
||||
echo $REV_VERSION >> ${file_list}
|
||||
. ${cfg_file}
|
||||
echo $REV_VERSION >> ${file_list}
|
||||
done
|
||||
sort -V ${file_list} | uniq > ${file_sort_list_version}
|
||||
|
||||
# second uniq sort all versions based in release
|
||||
for pkg_version in `cat ${file_sort_list_version}` ; do
|
||||
for cfg_file_ver in ${OPSI_REPOS_PRODUCT_DIR}/${PN}-${pkg_version}-*.cfg ; do
|
||||
. ${cfg_file_ver}
|
||||
echo ${pkg_version}-$REV_CREATOR_TAG$REV_RELEASE >> ${file_sort_list_release}
|
||||
done
|
||||
for cfg_file_ver in ${OPSI_REPOS_PRODUCT_DIR}/${PN}-${pkg_version}-*.cfg ; do
|
||||
. ${cfg_file_ver}
|
||||
echo ${pkg_version}-$REV_CREATOR_TAG$REV_RELEASE >> ${file_sort_list_release}
|
||||
done
|
||||
done
|
||||
sort -V ${file_sort_list_release} | uniq > ${file_sort_list_final}
|
||||
|
||||
# third create versionrelease
|
||||
for release_file_list in `cat ${file_sort_list_final}` ; do
|
||||
. ${OPSI_REPOS_PRODUCT_DIR}/${PN}-${release_file_list}.cfg
|
||||
. ${OPSI_REPOS_PRODUCT_DIR}/${PN}-${release_file_list}.cfg
|
||||
echo "${OPSI_REPOS_PRODUCT_DIR}/${PN}-${release_file_list}.cfg" >> ${file_sort_list}
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user