Skip to content

Commit

Permalink
Fix return value for clean command
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasall committed Apr 6, 2018
1 parent c692963 commit 00fe0f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apt-fast
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ cleanup_dllist()

cleanup_aptfast()
{
CLEANUP_STATE=$?
[ "$CLEANUP_STATE" -eq 0 ] && CLEANUP_STATE=$?
cleanup_dllist
_remove_lock
}
Expand Down Expand Up @@ -591,7 +591,8 @@ if [ "$option" == "install" ]; then
elif [ "$option" == "clean" ]; then
"${_APTMGR}" "${APT_SCRIPT_WARNING[@]}" "$@" && {
find "$DLDIR" -maxdepth 1 -type f -delete
[ -f "$DLLIST" ] && rm -f -- "$DLLIST"*
CLEANUP_STATE="$?"
[ -f "$DLLIST" ] && rm -f -- "$DLLIST"* || true
}
elif [ "$option" == "download" ]; then
Expand Down

0 comments on commit 00fe0f0

Please sign in to comment.