View | Details | Raw Unified | Return to bug 269242
Collapse All | Expand All

(-)portmaster-SPACE-IN-FILENAME 2023-01-24 17:33:48.916819000 +0900 (-3 / +4 lines)
Lines 1305-1317 Link Here
1305
       fi
1305
       fi
1306
1306
1307
       echo "===>>> Checking for stale distfiles" ; echo ''
1307
       echo "===>>> Checking for stale distfiles" ; echo ''
1308
       for df in `find $DISTDIR -type f | sort`; do
1308
       find $DISTDIR -type f | sort | while read df
1309
  do
1309
               f=${df#$DISTDIR}
1310
               f=${df#$DISTDIR}
1310
               if ! grep -ql ^$f $DI_FILES; then
1311
               if ! grep -ql "^$f" $DI_FILES; then
1311
                       get_answer_yn n "\t===>>> Delete stale file: $f"
1312
                       get_answer_yn n "\t===>>> Delete stale file: $f"
1312
                       case "$?" in
1313
                       case "$?" in
1313
                       0)      echo "       Deleting $f" ; echo ''
1314
                       0)      echo "       Deleting $f" ; echo ''
1314
                               /bin/unlink $df ;;
1315
                               /bin/unlink "$df" ;;
1315
                       *)      continue ;;
1316
                       *)      continue ;;
1316
                       esac
1317
                       esac
1317
               fi
1318
               fi

Return to bug 269242