]>
git.saurik.com Git - cydia.git/blob - Library/move.sh
3 shopt -s extglob nullglob
5 if [[ ${1:0:1} == - ]]; then
24 /usr
/libexec
/cydia
/setnsfpn
/var
/stash
26 tmp
=$(mktemp -d /var/stash/_.XXXXXX)
30 chown root.admin
"${tmp}"
32 mkdir -- "${dst}" || {
37 if [[ -e ${src} ]]; then
38 chmod --reference="${src}" "${dst}"
39 chown
--reference="${src}" "${dst}"
41 cp -aT $v "${src}" "${dst}" || {
49 chown root.admin
"${dst}"
52 ln -s "${dst}" "${src}"
53 echo -n "${src}" >"${tmp}.lnk"
59 if [[ -d ${dir} && ! -h ${dir} ]]; then
60 used
=$(/usr/libexec/cydia/du -bs "${dir}")
64 if [[ $((used + 524288)) -lt ${free} ]]; then
67 elif [[ ! -e ${dir} ]]; then