mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-08 13:13:47 -05:00
better handling of verbosity
This commit is contained in:
@@ -58,7 +58,7 @@ function trapCleanup() {
|
|||||||
# -----------------------------------
|
# -----------------------------------
|
||||||
quiet=0
|
quiet=0
|
||||||
printLog=0
|
printLog=0
|
||||||
verbose=true
|
verbose=0
|
||||||
force=0
|
force=0
|
||||||
strict=0
|
strict=0
|
||||||
debug=0
|
debug=0
|
||||||
@@ -178,7 +178,6 @@ function realpath() {
|
|||||||
function listTrash() {
|
function listTrash() {
|
||||||
num_volumes=0
|
num_volumes=0
|
||||||
total_blocks=0
|
total_blocks=0
|
||||||
verbose "listing trash contents"
|
|
||||||
|
|
||||||
# list file contents & calculate size for user's .Trash folder
|
# list file contents & calculate size for user's .Trash folder
|
||||||
if find "/Users/${user}/.Trash" -depth 1 ! -depth 0; then
|
if find "/Users/${user}/.Trash" -depth 1 ! -depth 0; then
|
||||||
|
|||||||
Reference in New Issue
Block a user