Bugfix: Fix new package detection
This commit is contained in:
parent
d45f24a621
commit
21abed1a1f
1 changed files with 2 additions and 2 deletions
|
@ -113,13 +113,13 @@ _symlink_deb() {
|
|||
|
||||
task_update() {
|
||||
task_begin "Symlinking new packages";
|
||||
package_count_before="$(find ${dir_repo} -type f -name "*.deb" | wc -l)";
|
||||
package_count_before="$(find ${dir_repo} -name "*.deb" | wc -l)";
|
||||
export -f _symlink_deb;
|
||||
cd "${dir_repo}" || exit 2;
|
||||
find "../${dir_sources}" -type f -name "*.deb" -print0 | xargs --null -n1 -I{} bash -c '_symlink_deb "{}"';
|
||||
exit_code="$?";
|
||||
cd - || exit 2;
|
||||
package_count_after="$(find ${dir_repo} -type f -name "*.deb" | wc -l)";
|
||||
package_count_after="$(find ${dir_repo} -name "*.deb" | wc -l)";
|
||||
task_end "${exit_code}";
|
||||
|
||||
if [[ "${package_count_before}" -eq "${package_count_after}" ]]; then
|
||||
|
|
Loading…
Reference in a new issue