X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/d4b6208d03a2b0521c9770ed931115bc88db1eb6..86a333c657dbfca4af4d88dc639a04460de79194:/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)