fix variable string style
This commit is contained in:
1 parent
4caa5b05e1
commit
4c309982e0
1 file changed
+2
-2
+2
-2
@@ -63,9 +63,9 @@ start_backup() {
|
|||||||
|
|
||||||
[[ -d "$backup_base" ]] || { echo "${backup_base} is not a directory"; exit 1; }
|
[[ -d "$backup_base" ]] || { echo "${backup_base} is not a directory"; exit 1; }
|
||||||
[[ -d "$destination" ]] || mkdir "$destination"
|
[[ -d "$destination" ]] || mkdir "$destination"
|
||||||
[[ -f "$destination/${backup_name}" ]] && { echo "Backup already exists"; return 2; }
|
[[ -f "${destination}/${backup_name}" ]] && { echo "Backup already exists"; return 2; }
|
||||||
|
|
||||||
lxc export "$vm" "$destination/${backup_name}"
|
lxc export "$vm" "${destination}/${backup_name}"
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
Reference in new issue
Block a user