summaryrefslogtreecommitdiff
path: root/Library/move.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Library/move.sh')
-rwxr-xr-xLibrary/move.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/move.sh b/Library/move.sh
index 7e737e3..54750cd 100755
--- a/Library/move.sh
+++ b/Library/move.sh
@@ -20,8 +20,13 @@ function df_() {
function mv_() {
src=$1
- mkdir -p /var/stash
- /usr/libexec/cydia/setnsfpn /var/stash
+ if [[ ! -e /var/stash ]]; then
+ mkdir -p /var/db/stash
+ /usr/libexec/cydia/setnsfpn /var/db/stash
+ ln -s -t /var /var/db/stash
+ elif [[ -d /var/stash ]]; then
+ /usr/libexec/cydia/setnsfpn /var/stash
+ fi
tmp=$(mktemp -d /var/stash/_.XXXXXX)
dst=${tmp}/${src##*/}