Skip to content

Commit c607f63

Browse files
committed
dropit: don't error when no groups found
1 parent fb5f74b commit c607f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dropit/dropit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ dropIt() {
112112
commitPaths+=("$pkgDir")
113113

114114
local -a groupsWithPkg
115-
readarray -t groupsWithPkg < <(grep -rHE "^$pkgDir$" groups/ | cut -d':' -f1)
115+
readarray -t groupsWithPkg < <((grep -rHE "^$pkgDir$" groups/ || true) | cut -d':' -f1)
116116
for group in "${groupsWithPkg[@]}"; do
117117
log "[$pkg] Removing from $group"
118118
removePackageFromGroup "$pkg" "$pkgDir" "$group"

0 commit comments

Comments
 (0)