bin: adjust rd
This commit is contained in:
parent
797e1fd2d8
commit
10536a6b1b
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
{
|
||||
echo "$# Args: $@"
|
||||
echo "$# Args: ${@:-DEFAULT}"
|
||||
#echo "Starred: $*"
|
||||
#echo "${@:-default}" | sed 's/\w\+/\0-w/g'
|
||||
for last; do true; done
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# Remove recursively safely
|
||||
case "$1" in ([0-9]) depth=$1; shift;; esac
|
||||
for f in "$@"
|
||||
for f in "${@-.}"
|
||||
do
|
||||
test -w "$f" && elevate="" || elevate=sudo
|
||||
if test -d "$f"; then
|
||||
|
@ -17,5 +17,4 @@ do
|
|||
fi
|
||||
else $elevate rm -i "$f"
|
||||
fi
|
||||
shift
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue