]>
git.saurik.com Git - cydia.git/blob - Library/move.sh
3 shopt -s extglob nullglob
5 if [[ ${1:0:1} == - ]]; then
24 dst
=$(mktemp -d /var/stash/"${src##*/}".XXXXXX)
26 if [[ -e ${src} ]]; then
27 chmod --reference="${src}" "${dst}"
28 chown
--reference="${src}" "${dst}"
30 cp -aT $v "${src}" "${dst}" || {
38 chown root.admin
"${dst}"
41 ln -s "${dst}" "${src}"
47 if [[ -d ${dir} && ! -h ${dir} ]]; then
48 used
=$(/usr/libexec/cydia/du -bs "${dir}")
52 if [[ $((used + 524288)) -lt ${free} ]]; then
55 elif [[ ! -e ${dir} ]]; then