]> git.saurik.com Git - cydia.git/blobdiff - Library/move.sh
Remove obsolete changes calculation debugging.
[cydia.git] / Library / move.sh
index 635c1539f68d4c0f314ea6c5880fb08ac6063ff1..4a15ca711039e23e032041c2067cee251bf24023 100755 (executable)
@@ -42,10 +42,10 @@ function mv_() {
 }
 
 function shift_() {
 }
 
 function shift_() {
-    dir=$1
+    dir=${1%/}
 
     if [[ -d ${dir} && ! -h ${dir} ]]; then
 
     if [[ -d ${dir} && ! -h ${dir} ]]; then
-        used=$(du -bs "${dir}")
+        used=$(/usr/libexec/cydia/du -bs "${dir}")
         used=${used%%$'\t'*}
         free=$(df_ /var)
 
         used=${used%%$'\t'*}
         free=$(df_ /var)