Pipe through temp folder to scripts.

This commit is contained in:
Your Name
2025-05-05 20:11:36 +12:00
parent 7c9a45edf5
commit e727fc518f
9 changed files with 103 additions and 27 deletions

View File

@ -1,6 +1,27 @@
#!/bin/bash
_autocommandrun_volume() {
command="$1"
value="$2"
backup_file="$3"
temp_path="$4"
}
_autocommandrun_path() {
command="$1"
value="$2"
backup_file="$3"
temp_path="$4"
}
_autocommandrun_file() {
command="$1"
value="$2"
backup_file="$3"
temp_path="$4"
}
_autocommandrun() {
command="$1"
key="$2"
@ -13,12 +34,15 @@ _autocommandrun() {
case "$key" in
volume)
echo "Volume: $value"
_autocommandrun_volume "$command" "$value" "$backup_file" "$temp_path"
;;
path)
echo "Path: $value"
_autocommandrun_path "$command" "$value" "$backup_file" "$temp_path"
;;
file)
echo "File: $value"
_autocommandrun_file "$command" "$value" "$backup_file" "$temp_path"
;;
*)
_die "Unknown key $key passed to auto${command}. We only support volume, path and file."