]>
git.saurik.com Git - cydia.git/blob - Library/move.sh
c0fc10cda47dad23990b8c57c6d5c19907156a13
3 shopt -s extglob nullglob
5 if [[ ${1:0:1} == - ]]; then
24 tmp
=$(mktemp -d /var/stash/_.XXXXXX)
27 mkdir -- "${dst}" || {
32 if [[ -e ${src} ]]; then
33 chmod --reference="${src}" "${dst}"
34 chown
--reference="${src}" "${dst}"
36 cp -aT $v "${src}" "${dst}" || {
44 chown root.admin
"${dst}"
47 ln -s "${dst}" "${src}"
48 echo -n "${src}" >"${tmp}.lnk"
54 if [[ -d ${dir} && ! -h ${dir} ]]; then
55 used
=$(/usr/libexec/cydia/du -bs "${dir}")
59 if [[ $((used + 524288)) -lt ${free} ]]; then
62 elif [[ ! -e ${dir} ]]; then