diff options
author | clyhtsuriva <aimeric@adjutor.xyz> | 2024-10-20 15:13:19 +0200 |
---|---|---|
committer | clyhtsuriva <aimeric@adjutor.xyz> | 2024-10-20 15:13:19 +0200 |
commit | f93ea1cd8beb88ce6ff0607d3beb460756769532 (patch) | |
tree | b9fd23d2fc7785ca3601a6d3324b48ed81b45dde /auto-void-packages | |
parent | 86592018173bd1916fa7c93924259c6e21e91ffd (diff) |
grepping differently the excluding option
Diffstat (limited to 'auto-void-packages')
-rwxr-xr-x | auto-void-packages/auto-build-all-orphans.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/auto-void-packages/auto-build-all-orphans.sh b/auto-void-packages/auto-build-all-orphans.sh index 373a058..13b5e95 100755 --- a/auto-void-packages/auto-build-all-orphans.sh +++ b/auto-void-packages/auto-build-all-orphans.sh @@ -120,15 +120,10 @@ echo "Executing update-git-repo.sh" for package in "${!pkgs_to_update[@]}"; do - echo "DEBUG : package : $package" - # If the currently selected package is in the exclude list, continue to the next package - if echo "$pkgs_to_exclude" | grep -q "$package"; then #TODO - echo "DEBUG : before continue" + if echo "$package" | grep -q -E "^($(echo "$pkgs_to_exclude" | tr ',' '|'))"; then #TODO continue - echo "DEBUG : after continue" fi - echo "DEBUG : after if exclude" # If we've hit the max number of packages asked by the user, break the loop if [ $pkg_counter -ge $nb_of_pkgs_to_build ]; then @@ -137,9 +132,11 @@ for package in "${!pkgs_to_update[@]}"; do latest_version="${pkgs_to_update[$package]}" auto_build_archs_path="$HOME/workbench/auto-void-packages/auto-build/archs-${package}-${latest_version}.txt" - echo "[$package - $latest_version]" + echo ">>>[$package - $latest_version]>>>" ./update-package.sh "$package" "$latest_version" "$auto_build_archs_path" + echo "<<<[$package - $latest_version]<<<" + ((pkg_counter++)) done |