~apt-fast/apt-fast/apt-fast-ro

« back to all changes in this revision

Viewing changes to apt-fast

  • Committer: GitHub
  • Author(s): Dominique Lasserre
  • Date: 2018-07-24 17:48:29 UTC
  • Revision ID: git-v1:bb63fab3885a154eae702e518aa661804b1cd416
Fix clean command on clean system. Closes #147 (untested)

Show diffs side-by-side

added added

removed removed

Lines of Context:
590
590
 
591
591
elif [ "$option" == "clean" ]; then
592
592
  "${_APTMGR}" "${APT_SCRIPT_WARNING[@]}" "$@" && {
593
 
    find "$DLDIR" -maxdepth 1 -type f -delete
594
 
    CLEANUP_STATE="$?"
595
 
    [ -f "$DLLIST" ] && rm -f -- "$DLLIST"* || true
 
593
    if [ -d "$DLDIR" ]; then
 
594
      find "$DLDIR" -maxdepth 1 -type f -delete
 
595
      CLEANUP_STATE="$?"
 
596
      [ -f "$DLLIST" ] && rm -f -- "$DLLIST"* || true
 
597
    fi
596
598
  }
597
599
 
598
600
elif [ "$option" == "download" ]; then