1 # Assumes shell is Bash, and pipefail is set.
3 bup_t_lib_script_home=$(cd "$(dirname $0)" && pwd) || exit $?
7 "$bup_t_lib_script_home/../cmd/bup-python" "$@"
12 "$bup_t_lib_script_home/force-delete" "$@"
17 test "$#" -eq 1 || return $?
19 PYTHONPATH="$bup_t_lib_script_home/../lib" bup-python -c \
20 "import sys, bup.helpers; print bup.helpers.resolve_parent(sys.stdin.readline())" \
26 local kernel="$(uname -s)" || return $?
29 df -G . | sed -En 's/.* ([^ ]*) fstype.*/\1/p'
32 df -g . | sed -En 's/.* ([^ ]*) fstype.*/\1/p'
35 df -T . | awk 'END{print $2}'
41 # Return filesystem for each dir from $1 to /.
42 # Perhaps for /foo/bar, "ext4\next4\nbtrfs\n".
43 test "$#" -eq 1 || exit $?
45 current-filesystem || exit $?
46 dir="$(pwd)" || exit $?
47 while test "$dir" != /; do
49 dir="$(pwd)" || exit $?
50 current-filesystem || exit $?
57 sed 's/[][\.|$(){?+*^]/\\&/g' <<< "$*"