Changes between Version 11 and Version 12 of Scripts/testport_script


Ignore:
Timestamp:
Apr 27, 2012, 6:01:41 PM (13 years ago)
Author:
kato23@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Scripts/testport_script

    v11 v12  
    9696
    9797do_update() {
    98    do_clean_work
     98   [[ $clean_all -eq 0 ]] && do_clean_work
    9999   port selfupdate
    100100   port outdated
     
    328328   if [[ $clean_all -eq 1 ]]; then
    329329      do_clean_all
    330    else
    331       do_clean_work
     330   elif [[ -d "$(port dir "$@")/work" ]]; then
     331      port -f clean --all "$@"
    332332   fi
    333333fi