Pipe through temp folder to scripts.
This commit is contained in:
@ -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."
|
||||
|
Reference in New Issue
Block a user