1 # Assumes shell is Bash, and pipefail is set.
3 bup_t_lib_script_home=$(cd "$(dirname $0)" && pwd)
7 "$bup_t_lib_script_home/force-delete" "$@"
12 test "$#" -eq 1 || return $?
14 PYTHONPATH="$bup_t_lib_script_home/../lib" python -c \
15 "import sys, bup.helpers; print bup.helpers.realpath(sys.stdin.readline())" \
21 local kernel="$(uname -s)" || return $?
24 df -G . | sed -En 's/.* ([^ ]*) fstype.*/\1/p'
27 df -g . | sed -En 's/.* ([^ ]*) fstype.*/\1/p'
30 df -T . | awk 'END{print $2}'
36 # Return filesystem for each dir from $1 to /.
37 # Perhaps for /foo/bar, "ext4\next4\nbtrfs\n".
38 test "$#" -eq 1 || exit $?
40 current-filesystem || exit $?
41 dir="$(pwd)" || exit $?
42 while test "$dir" != /; do
44 dir="$(pwd)" || exit $?
45 current-filesystem || exit $?
52 sed 's/[][\.|$(){?+*^]/\\&/g' <<< "$*"