X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/8b7435911a3fcbce8e22d56b487bd3557bbfe4a5..87c76914b78e2ef0aeb16ce28e38c90ed736f0f9:/Library/move.sh diff --git a/Library/move.sh b/Library/move.sh index 3cbe7994..abfe2edf 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,7 +42,7 @@ function mv_() { } function shift_() { - dir=$1 + dir=${1%/} if [[ -d ${dir} && ! -h ${dir} ]]; then used=$(du -bs "${dir}")