Skip to content

Commit

Permalink
Provide console feedback for making directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
benzenwen committed Oct 22, 2013
1 parent ba7ade1 commit dfa44bd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mupload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,15 @@ foreach ($i in $input) {
if ($DryRun) {
"Dry Run: " + $mcmd + " " + $mhdr + " " + $md5HDR + " " + $mopts | echo
} else {
if ($Verbose) { $mcmd + $mhdr + $md5HDR + $mopts | echo }
if ($Verbose) {
$mcmd + $mhdr + $md5HDR + $mopts | echo
} else {
if ($mcmd -match "mmkdir") {
# mmkdir is silent, provide feedback
$mcmd + $mhdr + $md5HDR + $mopts | echo
}
}

& $mcmd $mhdr $md5DHR $mopts
}

Expand Down

0 comments on commit dfa44bd

Please sign in to comment.