This commit is contained in:
parent
8d21dc39d7
commit
198fcfeba4
6
trash.sh
6
trash.sh
@ -22,7 +22,7 @@ trash_list() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
trash_put() {
|
trash_put() {
|
||||||
usage "$#" ${FUNCNAME[0]}
|
usage "$#" "${FUNCNAME[0]}"
|
||||||
|
|
||||||
for FILE in $@; do
|
for FILE in $@; do
|
||||||
# Store old filepath for later restore
|
# Store old filepath for later restore
|
||||||
@ -37,7 +37,7 @@ trash_empty() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
trash_restore() {
|
trash_restore() {
|
||||||
usage "$#" ${FUNCNAME[0]}
|
usage "$#" "${FUNCNAME[0]}"
|
||||||
|
|
||||||
for FILE_TO_RESTORE in "$@"; do
|
for FILE_TO_RESTORE in "$@"; do
|
||||||
# Get old filepath for restore
|
# Get old filepath for restore
|
||||||
@ -52,7 +52,7 @@ trash_restore() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
trash_rm() {
|
trash_rm() {
|
||||||
usage "$#" ${FUNCNAME[0]}
|
usage "$#" "${FUNCNAME[0]}"
|
||||||
#if [[ $# == 0 ]]; then echo -e "At least one argument required:\n$0 FILE1 DIR2 ..."; return 1; fi
|
#if [[ $# == 0 ]]; then echo -e "At least one argument required:\n$0 FILE1 DIR2 ..."; return 1; fi
|
||||||
|
|
||||||
for FILE_TO_REMOVE in "$@"; do
|
for FILE_TO_REMOVE in "$@"; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user