X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/8b7435911a3fcbce8e22d56b487bd3557bbfe4a5..9ae52960705f60e7a3fb9b32801184d7b72317b0:/Library/move.sh diff --git a/Library/move.sh b/Library/move.sh index 3cbe7994..4a15ca71 100755 --- a/Library/move.sh +++ b/Library/move.sh @@ -21,7 +21,7 @@ function mv_() { src=$1 mkdir -p /var/stash - dst=$(mktemp -d /var/stash/$(basename "${src}").XXXXXX) + dst=$(mktemp -d /var/stash/"${src##*/}".XXXXXX) if [[ -e ${src} ]]; then chmod --reference="${src}" "${dst}" @@ -42,10 +42,10 @@ function mv_() { } function shift_() { - dir=$1 + dir=${1%/} if [[ -d ${dir} && ! -h ${dir} ]]; then - used=$(du -bs "${dir}") + used=$(/usr/libexec/cydia/du -bs "${dir}") used=${used%%$'\t'*} free=$(df_ /var)