mirror of https://github.com/digint/btrbk
ssh_filter_btrbk: cosmetics: fix indentation (remove tabs)
parent
ccb5ed5e71
commit
407d25f604
|
@ -82,55 +82,55 @@ while [[ "$#" -ge 1 ]]; do
|
||||||
|
|
||||||
case $key in
|
case $key in
|
||||||
-l|--log)
|
-l|--log)
|
||||||
enable_log=1
|
enable_log=1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--sudo)
|
--sudo)
|
||||||
use_sudo="sudo"
|
use_sudo="sudo"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-p|--restrict-path)
|
-p|--restrict-path)
|
||||||
restrict_path_list="${restrict_path_list}|${2%/}" # add to list while removing trailing slash
|
restrict_path_list="${restrict_path_list}|${2%/}" # add to list while removing trailing slash
|
||||||
shift # past argument
|
shift # past argument
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-s|--source)
|
-s|--source)
|
||||||
allow_cmd "btrfs subvolume snapshot"
|
allow_cmd "btrfs subvolume snapshot"
|
||||||
allow_cmd "btrfs send"
|
allow_cmd "btrfs send"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-t|--target)
|
-t|--target)
|
||||||
allow_cmd "btrfs receive"
|
allow_cmd "btrfs receive"
|
||||||
# the following are needed if targets point to a directory
|
# the following are needed if targets point to a directory
|
||||||
allow_cmd "realpath"
|
allow_cmd "realpath"
|
||||||
allow_exact_cmd "cat /proc/self/mounts"
|
allow_exact_cmd "cat /proc/self/mounts"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-d|--delete)
|
-d|--delete)
|
||||||
allow_cmd "btrfs subvolume delete"
|
allow_cmd "btrfs subvolume delete"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-i|--info)
|
-i|--info)
|
||||||
allow_cmd "btrfs subvolume find-new"
|
allow_cmd "btrfs subvolume find-new"
|
||||||
allow_cmd "btrfs filesystem usage"
|
allow_cmd "btrfs filesystem usage"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--snapshot)
|
--snapshot)
|
||||||
allow_cmd "btrfs subvolume snapshot"
|
allow_cmd "btrfs subvolume snapshot"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--send)
|
--send)
|
||||||
allow_cmd "btrfs send"
|
allow_cmd "btrfs send"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--receive)
|
--receive)
|
||||||
allow_cmd "btrfs receive"
|
allow_cmd "btrfs receive"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "ERROR: ssh_filter_btrbk.sh: failed to parse command line option: $key" 1>&2
|
echo "ERROR: ssh_filter_btrbk.sh: failed to parse command line option: $key" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue