1 # Assumes shell is Bash, and pipefail is set.
3 bup_t_lib_script_home=$(cd "$(dirname $0)" && pwd) || exit $?
5 bup-cfg-py() { "$bup_t_lib_script_home/../config/bin/python" "$@"; }
6 bup-python() { "$bup_t_lib_script_home/../dev/bup-python" "$@"; }
10 "$bup_t_lib_script_home/force-delete" "$@"
15 test "$#" -eq 1 || return $?
17 PYTHONPATH="$bup_t_lib_script_home/../lib" bup-python -c \
18 "import sys, bup.helpers; print(bup.helpers.resolve_parent(sys.stdin.readline()))" \
24 local kernel="$(uname -s)" || return $?
27 df -G . | sed -En 's/.* ([^ ]*) fstype.*/\1/p'
30 df -g . | sed -En 's/.* ([^ ]*) fstype.*/\1/p'
33 df -T . | awk 'END{print $2}'
39 # Return filesystem for each dir from $1 to /.
40 # Perhaps for /foo/bar, "ext4\next4\nbtrfs\n".
41 test "$#" -eq 1 || exit $?
43 current-filesystem || exit $?
44 dir="$(pwd)" || exit $?
45 while test "$dir" != /; do
47 dir="$(pwd)" || exit $?
48 current-filesystem || exit $?
55 sed 's/[][\.|$(){?+*^]/\\&/g' <<< "$*"